Highlight 3.41

Highlight converts sourcecode to HTML, RTF, LaTeX, TeX, SVG, Pango, BBCode and terminal escape sequences with coloured syntax highlighting. Language definitions and colour themes are customizable Lua scripts. It provides a plug-in interface to tweak syntax parsing and coloring.

Tags documentation text-processing html latex
License GNU GPLv3
State stable

Recent Releases

3.4128 Nov 2017 18:40 minor feature: -renamed examples directory to extras -line anchors (-a) are attached as id attribute to the first span or li tag in HTML output -renamed ID prefix in outhtml_codefold plug-in to be compatible with -a IDs -added fstab.lang and added anacrontab in filetypes.conf -removed references to OutputType::HTML32 -added extras/css-themes and extras/langDefs-resources -CLI: removed deprecated indicator of --data-dir option -CLI: added --no-version-info option -GUI: fixed initial theme selection -GUI: added "Omit version info comment" option -GUI: added "Copy with MIME type" option for HTML output
3.4024 Oct 2017 18:22 minor feature: -fixed Ruby string parsing -fixed segfault on sparc64 -fixed PureBasic definition -added CMake definition -added email definition -linked scm suffix to lisp definition -W32 CLI: support HIGHLIGHT_DATADIR and --data-dir options -revised documentation
3.3926 Jul 2017 19:57 minor feature: -added syntax for Docker and Elixir -improved HTML, Julia, Kotlin and Smalltalk syntax definitions -GUI: added "Paste, Convert and Copy" button
3.3821 Jun 2017 12:57 minor feature: -fixed Bash variable highlighting issue -updated astyle code to release 3.0.1 -added bash_ref_man7_org.lua plugin
3.3730 May 2017 19:53 minor feature: -fixed Perl string highlighting issue -fixed highlighting if a line continues after the nested code delimiter -updated astyle code to release 3.0 -added examples/pandoc -added syntax mapping for markdown -added syntax mapping for clj -improved Java definition -added theme to JSON converter in examples/json -CLI: added support for environment variable HIGHLIGHT_OPTIONS
3.3604 Apr 2017 19:27 minor feature: -fixed code folding plugin to support more Ruby conditional modifiers -fixed Perl quoted string highlighting -added new GeneratorOverride syntax definition parameter -added Filenames parameter in filetypes.conf to assign input filenames to syntax types -added FASM definition and edit-fasm theme -added outhtml_ie7_webctrl plug-in -GUI: file extensions can be configured for multiple languages, triggers syntax selection prompt -GUI: added Italian translation
3.3528 Feb 2017 18:56 minor feature: -fixed code folding plugin to support Ruby conditional modifiers -fixed JSON definition -fixed output of unknown syntax warning with applied force switch -added state trace parameter to Decorate plug-in function -added GDScript definition and edit-godot theme -updated SWIG code samples -updated Artistic Style lib (SVN Rev. 553) -revised docs -CLI: fixed creation of hidden files if output filename is prepended by its input path -CLI: added switch --stdout
3.3431 Dec 2016 13:33 minor feature: -fixed segfault with --skip applied on a single file input list -added support for Python 3.6 syntax -added Github and Sourceforge themes
3.3302 Nov 2016 19:44 minor feature: -fixed highlighting of nested section delimiters -fixed PHP definition -fixed font family declaration in SVG -fixed user defined encoding in ODT -fixed unnecessary output of style file with --inline-css -added vimscript language definition -added Coffeescript language definition -added PureBasic definition and theme -added JSX language definition -added PO translation definition -added plug-in outhtml_add_figure.lua -updated js definition -updated Artistic Style lib -improved various color themes and syntax definitions
3.3226 Sep 2016 18:38 minor feature: -added support for true color escape codes (--out-format truecolor) -fixed xterm256 output for paging with less -fixed operator regex in rnc.lang, crk.lang and yaml.lang -added Pony and Whiley definitions -updated Ceylon, Julia and TypeScript definitions
3.3101 Aug 2016 08:26 minor feature: -revised documentation -GUI: minor layout issues were fixed
3.3001 Jul 2016 15:58 minor feature: -the data directory can be defined with the HIGHLIGHT_DATADIR environment variable -fixed RTF output of UTF-8 input -fixed XML comment recognition -data search directories were appended to the result of --list-scripts -revised older syntax definitions -updated base URLs of bash_ref_linuxmanpages and cpp_ref_qtproject plug-ins -GUI: added system copy and paste shortcuts for clipboard functions
3.2923 May 2016 15:47 minor feature: -added Ansible Yaml and Chapel definitions -fixed gcc 6 warnings about deprecated auto_ptr usage -GUI: fixed style file output if "write to source directory" option is checked
3.2816 Feb 2016 17:53 minor feature: -added support of Pascal, Lua, Ruby and C# regions in outhtml_codefold.lua -improved outhtml_codefold.lua to handle embedded languages -added string delimiters in the Ruby definition -added new AssertEqualLength flag in string section of language definitions -improved heredoc parsing -fixed Lua multiline string recognition -improved SVG whitespace output -added Nim and mIRC Scripting definitions
3.2721 Jan 2016 21:12 minor feature: -improved outhtml_codefold.lua plug-in to ignore brackets on the same line -added RTF output to mark_lines.lua plug-in -fixed Powershell and NSIS definitions -added JSON and Github Markdown definitions -CLI: added --keep-injections option to force plugin injection output with -f -GUI: added keep injections checkbox -GUI: fixed crash after removing selected plugins
3.2614 Jan 2016 20:30 minor feature: -added HL_REJECT state to be used in a OnStateChange function -added DecorateLineBegin and DecorateLineEnd hooks -added mark_lines.lua, outhtml_codefold.lua, comment_links.lua plug-ins -fixed font face in ODT output -fixed Operators parameter in frink.lang and oorexx.lang -fixed regular expression parsing within strings for JS, Perl and Ruby -CLI: added --page-color option to include a page color in RTF output -GUI: added RTF page color option
3.2521 Dec 2015 20:23 minor feature: -added new SVG definition to support embedded scripting -improved js.lang, css.lang, scss.lang, less.lang, tsql.lang -modified HTML ordered list output to work better with new plug-ins -renamed plug-in variable HL_INPUT_FILE to HL_PLUGIN_PARAM -CLI: renamed --plug-in-read option to --plug-in-param -GUI: updated plug-in parameter label and tool-tips -GUI: fixed minor issues
3.2403 Nov 2015 10:18 minor feature: -fixed TeX output for cweb documents -fixed string interpolation in bat.lang -added several HTML output plug-ins -added TCL extension in examples/tcl -added support for Kotlin, Nginx and Julia -updated php.lang to include version 7 keywords -updated ceylon.lang to include version 1.2 keywords -updated scripts in examples directory -CLI: style-infile option marked as deprecated -GUI: shortened paths in file input lists
3.2305 Aug 2015 08:12 minor feature: -added support fur Rust and generic config files -added some extensions in filetypes.conf -fixed Matlab definition and style -CLI: fixed --list-scripts with unknown argument
3.2223 Feb 2015 18:45 minor feature: -updated astyle code to release 2.05.1 -fixed shebang recognition -GUI: added option to define line numbering start
3.2102 Feb 2015 19:11 minor feature: Added support for LESS, SASS and Stylus CSS processors. Added support for Lua 5.3, removed LUA52 makefile option. Fixed Haskell, Perl, RNC and js.lang.
3.2002 Dec 2014 20:15 minor feature: Updated Artistic Style lib. Added VTK code formatting style.
3.1917 Sep 2014 18:11 minor feature: Added bold, italic and underline attributes to xterm256 ANSI output Fixed assembler mapping in filetypes.conf Added Swift definition Improved ASP, F#, OCaml and Lisp syntax definitions Added interpolation patterns to several definitions Updated base URLs in cpp_ref_gtk_gnome and cpp_ref_qtproject plug-ins CLI: added Pango markup output option
3.1811 Aug 2014 18:42 minor feature: Filenames without extension (ie. makefile) can be mapped in filetypes.conf. A new GDB language definition was added.