This program, given a source file, produces a document with syntax highlighting.
Source-highlight reads source language specifications dynamically, thus it can
be easily extended (without recompiling the sources) for handling new languages.
It also reads output format specifications dynamically, and thus it can be
easily extended (without recompiling the sources) for handling new output
formats. The syntax for these specifications is quite easy (take a look at the
manual).
Notice that source-highlight can also be used as a formatter (i.e., without
highlighting): you can, for instance, format a txt file in HTML (and it will
take care of translating special characters, such as, <, >, &).
Since version 2.2, source-highlight can also generate cross references; in order
to do this it relies on GNU Ctags, http://ctags.sourceforge.net.
| |