in reply to Syntax highlighting in CGIT

Please don't just look at file extensions because goodness knows that most of my perl scripts don't have a suffix. The libraries have .pm of course, but nothing for the main program. Use the program file to check for perl.

Lookup magic if you're unfamiliar with examining the contents of a file to figure out what type of file it is.

- doug

Replies are listed 'Best First'.
Re^2: Syntax highlighting in CGIT
by DrHyde (Prior) on Aug 18, 2009 at 09:39 UTC
    File extensions do a good enough job for my repo, which is the only one that matters to me. Feel free to change the code if you use it.