ghalkes:~# command line tools

Tilde Terminal Toolkit


The libt3highlight library provides functions for syntax-highlighting different types of text files. Its main design goal is an easily restartable syntax highlighting, suitable for use in interactive text editors.

To make the syntax highlighting restartable, libt3highlight uses a single integer start-of-line state. However, it does provide several advanced features, such as dynamic end-of-state patterns, which make it possible to highlight complex languages like Perl and Bash with high fidelity.


libt3highlight version 0.3.3 released

This release fixes a bug in the loop detection for non-progressing patterns, and highlights java string constants (they were already detected, just not highlighted).


libt3highlight version 0.3.2 released

This release fixes the shell patterns to correctly identify the closing parenthesis of subshells and other construct that use the closing parenthesis as their terminator.


libt3highlight version 0.3.1 released

This release fixes a bug in the detection of empty-matching cycles, which could cause out-of-memory conditions in programs using libt3highlight.



Documentation is available for libt3highlight, and is included in the source package and the development binary packages. Documentation for the latest version can also be found here. It includes descriptions of both the syntax-highlighting files and the API.


The source for libt3highlight is available here. Older releases are available here. libt3highlight requires GNU libtool, libpcre version 8.00 or later, and libt3config to be compiled. libt3highlight versions before 0.3.0 can be built with older libpcre verions.

Binary packages for libt3highlight are available from the Tilde repositories.


You can reach me at: libt3highlight @ REMOVE

Copyright Notice

Copyright © 2011-2013 G.P. Halkes
libt3highlight is distributed under the GNU General Public License version 3.