Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!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: 5 years ago
Active Installs: 30+


0 out of 5 stars


Got something to say? Need help?


Not enough data

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

100,1,1 100,1,1