Question

Can anybody recommend a reliable and decently documented code highlighter for WordPress 2.6.1? I have tried Code Snippet by Roman Roan and Developer Formatter by Gilberto Saraiva. But they don't seem to work as described in the documentation and are mangling the code snippets instead of prettifying them.

Was it helpful?

Solution

I use WP-Syntax and it's worked very well for me. It's supported every language I've thrown at it so far, and the colors can be customized for a particular theme (though the defaults look just fine too)

OTHER TIPS

You should also checkout syntaxhighlighter from Google Code.

I use the GeSHi Syntax Highlighter Plugin in my blog and I find it works well. Which highlighter you use tends to depend on which languages you use most frequently and how good the support is for them.

[Edit] I forgot that GeSHi is the highlighter associated with the Wordpress SyntaxHighlighter plugin. :/

WP-Syntax uses GeSHi to do the highlighting, the WordPress Syntax Highlighter uses the Javascript SyntaxHighlighter

http://wordpress.org/extend/plugins/wp-synhighlight

It utilizes shordcodes and works well in GUI editor also unlike some others (WP-Syntax has some problems with GUI).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top