Hi,
As far as I know, to view source code with syntax highlighting in a terminal, I have two options:
1. source-highlight package
2. emacs
Trouble is (1) is easy to use but isn't very clever about syntax, and (2) gets the syntax highlighting right, but is a pain to use.
So, ideally, I want an emacs-based filter that reads in a source code file, and outputs that with ANSI color escape sequences in the same manner as the font-lock-fontify-buffer command does.
Less ideal, but good enough, would be a script around emacs to read in a file, font-lock it, and put emacs in view mode.
Any ideas on how I do either of these?
Cheers, Carl.
