WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WP-Syntax Download Extension

This plug-in makes WP-Syntax highlighted code snippets downloadable from nice captions.

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.

Requires: 3.0 or higher
Compatible up to: 3.4.2
Last Updated: 2014-5-2
Downloads: 3,676

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,1,1
0,1,0