Skip to content
This is a preview of the new Lite XL website. The current website is here.
Syntaxes and Themes

Syntaxes and Themes

In Lite XL, adding support for different programming languages is accomplished by adding syntax definitions to the tokenizer. The highlighter uses the tokenizer to get a stream of tokens, and queries the visual styles from the current theme. The tokens are then rendered to the window.

Syntax definition and theme files are Lua files that are loaded during Lite XL initialization. Syntax definition calls syntax.add() while theme files manipulate the values in the styles table.


Last updated on