This little program is a wrapper around Lorenzo Bettini's GNU source-highlight program, which can be used as an Apache filter to highlight source code in Web pages on the fly. Here's an example: in your Web page source you might have
<highlight lang="python">
## This is a Python snippet
import os, re
print "Foo and bar"
sys.exit(0)
</highlight>
This code highlighting filter will (depending on configuration details) turn this into something like
## This is a Python snippet import os, re print "Foo and bar" sys.exit(0)
You can also use the highlighting tag to refer to a code file with a system or network path, for example:
<highlight lang="python" href="foo.py" />
<highlight lang="xml" href="/www/path/to/bar.xml" />
<highlight lang="fortran" href="http://www.example.com/baz.f" />
Nice features of this highlighting filter include:
source-highlight-filter is available under the terms of the GNU General Public License