WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Pygments for WordPress

This plugin uses pygments to highlight code on the server, with a simple shortcode. For example, [pyg]print "Hi"[/pyg]).

Are all tabs really preserved?

Almost. Although the code is preserved correctly in the editor, as of this writing (2011-06-28) the Pygments "pygmentize" command trims all whitespace from the end of the lines when displaying in HTML. I didn't see an option to disable that behavior in the documentation. Other than that, formatting is preserved. My end goal is to make it preserve all tabs, such that a copy'n'paste from the web page would result in an exact MD5 match of the original.

Requires: 2.5.0 or higher
Compatible up to: 3.2.1
Last Updated: 2011-10-2
Downloads: 1,499

Ratings

4 stars
4.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
0,1,0
100,1,1