For detecting languages, they use linguist
and for syntax highlighting, they use pygments.rb
. Both would be fairly easy to add support for Coconut in, since linguist just matches file extensions to languages, and Coconut already comes with a Pygments highlighter (
) that would just have to be ported into Pygments core, although currently neither have Coconut support.