ColdFusion syntax highlighting in Wordpress
Posted on July 15, 2008
Filed Under ColdFusion, Wordpress |
So this is a code blog and every good with a lot of code needs a good code plugin. A friend put me onto a nice little plugin for WP called SyntaxHighlighter Plus - it leverages off a googlecode project that highlights for a whole swag of languages all in javascript. Pretty slick.
Unfortunately there is no language support for ColdFusion built in. Happily, a few helpful blog posts later, I found a ColdFusion “brush” drop-in for SyntaxHighlighter. You can download the JS brush here.
Just drop it into the wp-content\plugins\syntaxhighlighter-plus\shlfiles directory and either modify the syntaxhighlighter.php file with references to ColdFusion or you can download my modified php file. You can either reference the language with either “coldfusion” or “cf”.
I will contact the plugin authors and see if they will agree to add the CF language file permanently to the distribution with the permission of the original brush file author.
Comments
One Response to “ColdFusion syntax highlighting in Wordpress”
Leave a Reply






Or there’s Geshi…
http://blog.monochrome.co.uk/index.php/2008/01/coldfusion-code-highlighting-with-geshi/