GNU Source-highlight 

supported languages 

input languages (or input formats) already supported (in alphabetical order):

  • C/C++
  • C# (new)
  • Bison
  • Caml
  • Changelog
  • Diff
  • Flex
  • Fortran
  • Html
  • Java
  • Javascript
  • Latex
  • Logtalk
  • Log files
  • Lua
  • ML
  • Pascal
  • Perl
  • PHP
  • Postscript
  • Prolog
  • Python
  • Ruby
  • Shell (new)
  • XML (new)

available language specifications 

use source-highlight —lang-list to get the complete list:

bison caml changelog cpp csharp diff flex fortran html java javascript langdef latex logtalk lua outlang pascal perl php3 postscript prolog python ruby sh sml style syslog xml