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.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Reddit
  • Technorati

Comments

One Response to “ColdFusion syntax highlighting in Wordpress”

  1. Neil Middleton on July 16th, 2008 12:35 am

Leave a Reply