Highlight converts source code to HTML, XHTML, RTF, LaTeX, TeX, SVG, BBCode, and terminal escape sequences with coloured syntax highlighting. Language definitions and colour themes are customizable.
Highlight was designed to offer a flexible but easy-to-use syntax highlighter for several output formats. Instead of hardcoding syntax or colouring information, all relevant data is stored in configuration scripts. These scripts may be altered or enhanced with plug-in scripts.
Features
- Highlighting of keywords, types, strings, numbers, escape sequences, comments, operators and preprocessor directives
- Coloured output in HTML, XHTML 1.1, RTF, TeX, LaTeX, SVG, BBCode, and terminal escape sequences
- Supports referenced stylesheet files for HTML, LaTeX, TeX, or SVG output
- Syntax elements are defined as regular expressions or plain string lists
- Customizable keyword groups
- Recognition of nested languages within a file
- All configuration files are Lua scripts
- Supports plug-in scripts to tweak language definitions and themes
- Reformatting and indentation of C, C++, C#, and Java source code
- Wrapping of long lines
- Configurable output of line numbers
Version 3.34:
- Fixed segfault with --skip applied on a single file input list
- Added support for Python 3.6 syntax
- Added Github and Sourceforge themes
- macOS 10.12 or later
Download Now