Update
GitHub uses an open source library, pygments for syntax highlighting. This is issue #756 on Bitbucket.
I’ve been primarily using full script components instead of tag components for the last year or so. In an MVC application this works out very well. The controllers and models are scripted while the views are html and cfml tags. Developers can write application logic quickly and see it clearly in script. Designers work with the tag based markup they are used to. Win – Win.
One of the things that has bugged me about script components when pushed to GitHub is lack of syntax highlighting. It is quite difficult to quickly scan the code of a collaborator or with the popularity of Gists, example code on many popular blogs. Here is an example of a ColdFusion component Gist:
Ew – the above example is hard to follow. So now I just add <cfscript> to all of my full script components even though not required by the language specification. Then all of our GitHub repositories and Gists pick up proper syntax highlighting:
Much better. So there you have it. You may not find the annoyance enough to include <cfscript> at the top of your Gists or .cfc files. In our case we scan and share on GitHub frequently so it is beneficial to have some syntax highlighting for full script ColdFusion components