It's bothered me for a while, that GitHub and Gist don't have proper syntax highlighting for full-script CFCs like this one.
They handle tags fine, and even do script inside of a <cfscript> tag, but just leave full script components as black text all the way down the page.
ColdFusion has allowed all-script components since version 9 which was released 5 years ago. I always just assumed that GitHub was aware of the problem and someone somewhere was hard at work resolving it. Silly Me.
GitHub uses this Ruby library to determine what language a while is written in:
https://github.com/github/linguist
Which in turn uses this Ruby wrapper to spin up the syntax highlighter:
https://github.com/tmm1/pygments.rb
But that library is just a proxy to this Python library that actually does the color coding:
https://bitbucket.org/birkenfeld/pygments-main
It looks like there's already a ticket from 2012 to add support and Ben Riordan took a whack at it last year with no luck. So I've forked the Pygments library, but know nothing of Python so I'm asking anyone who does to help me get this figured out. Since script already works inside <cfscript> tags, it sounds like all the pieces are there-- we just need to properly identify script components and use the correct highlighter for them. Comment here or shoot me an E-mail if you'd like to help!