WP-Syntax Download Extension

from 0$

WP-Syntax Download Extension is a WP Plugin Package from the Open Source WP Plugins range This plug-in makes WP-Syntax highlighted code snippets downloadable from nice captions.


For more information about a tailored WP Plugin Package like WP-Syntax Download Extension please contact us directly.

This plug-in adds download facility to
WP-Syntax, putting a
pretty caption to each syntax highlighted code snippet, which contains
a permalink anchor and a couple of action buttons: “raw” and
“download”.

The usage is easy. You just put an attibute filename="..." to
a <pre> element and the snippet will have a caption.

I strongly recommend that you use the TinyMCE Valid
Elements

plug-in to make the non-standard attributes of the <pre> element
treated as valid and get preserved in the visual editor. Configure it
so that the pre element can have the following attributes:

  • class
  • dir
  • escaped
  • filename
  • highlight
  • id
  • lang
  • line
  • style
  • title
  • wrap

You can alter the visual style of captions with CSS via admins menu.
This plug-in was first developed for PHP 5.2.12 and is currently
tested only with 5.4. It will never work with PHP 4.

License

Copyright (c) 2010, 2011, 2012, 2013, 2014 Akinori MUSHA

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

  1. Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS “AS IS” AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

Download & install the zip archive

The plugin package installer can be downloaded from the WP2E project tab called “code”.

1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.

2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.

3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.

Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.

WP-Syntax Download Extension

typePlugin
versionlatest
descriptionThis plug-in makes WP-Syntax highlighted code snippets downloadable from nice captions.