The other day, Todd Sharp forwarded me a blog posting about a little known utility in ColdFusion for syntax highglighting. http://www.anujgakhar.com/2008/02/14/colored-code-with-coldfusion/
The fact is, that this internal utility was made for highlighting MXML not CFML. It seemed to me that there are a lot of syntax highlighters out there, but most of them are in JavaScript or extraordinarily heavy and difficult to implement. And even when they do highlight CF, they do it with color coding that is strange to me.
I didn't think it would be that hard to make a syntax highlighter... so, over the weekend I made one. :)
ColdFISH handles highlighting CFML, CFSCRIPT, HTML, Javascript, and Comments in each of those. It's not yet smart enough to do the highlighting of keywords, but I think it will do the trick for most of you. It's very fast (~50 ms for my 58 line test file), the color coding is easy to customize, and it generates simple HTML so you shouldn't have to worry about how it renders in various browsers.
Check out the ColdFISH project on RIAFORGE and let me know what you think!
Cheers,
Jason