GNU Source-highlight produces a document with syntax highlighting when given a source file. It handles many languages, e.g., Java, C/C++, Prolog, Perl, PHP3, Python, Flex, HTML, and other formats, e.g., ChangeLog and log files, as source languages and HTML, XHTML, DocBook, ANSI color escapes, LaTeX, and Texinfo as output formats. Input and output formats can be specified with a regular expression-oriented syntax.

Changes

Some language definitions were fixed and use of sed and ctags in makefiles has been corrected. Some memory leaks were removed. Script languages are also inferred by checking for the env specification. Error reporting for lang definition files was improved. A syntax for regular expressions that permits backreferences and conditionals is now available in language definition files. The check-regexp program was added for checking regular expressions on the command line. The --doc option and references for docbook output are now available. XHTML output with a non-fixed font is now available.

URL: GNU Source-highlight - GNU Project - Free Software Foundation (FSF)