Lexing & Syntax Highlighting in Lua
LXSH is a collection of lexers and syntax highlighters written in Lua using the excellent pattern-matching library LPeg. Several syntaxes are currently supported: Lua, C, BibTeX and shell script. The syntax highlighters support three output formats: HTML designed to be easily embedded in web pages, LaTeX which can be used to generate high quality PDF files and RTF which can be used in graphical text editors like Microsoft Word and LibreOffice (formerly OpenOffice). Three predefined color schemes are included.