ghalkes:~# command line tools

Tilde Terminal Toolkit

libt3highlight

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.

News

libt3highlight version 0.4.4 & 0.4.5 released

These releases contains no functional changes, and only change the packaging.

28-Dec-2017

libt3highlight version 0.4.3 released

This release adds highlight support for C++ raw string literals and the Ruby language.

08-Nov-2017

libt3highlight version 0.4.0, 0.4.1 & 0.4.2 released

This release contains several changes to the interface for detecting languages, which make it possible to retrieve more information about the detected language. Basic highlighting for PHP was added, and the HTML highlighting had several small fixes.

19-Feb-2016

Documentation

The documentation for libt3highlight can be generated using doxygen, using the doxygen.conf file in the source package. Documentation for the latest version can also be found here. It includes descriptions of both the syntax-highlighting files and the API.

Download

The source for libt3highlight is available here (signature). Older releases are available here. All releases are signed with the GPG key for gpg@ghalkes.nl (0x5A22F7B45F39DE51).

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.

Contact

You can reach me at: libt3highlight @ REMOVE ghalkes.nl.

Copyright Notice

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