codehigh

Highlight code and demos with l3regex and lpeg

Version:
2025A
Copyright:
License:
lppl1.3c
Packaged on:
01/11/2025 15:17:24
Number of files:
3
Size on disk:
27.13 kB

This package uses the l3regex package from the LaTeX3 Programming Layer to parse and highlight source code and demos. It is more powerful than the listings package, and more easy to use than minted. But it is slower than both of them. Therefore in LuaTeX the package provides another way to highlight code: using LPeg (Parsing Expression Grammars for Lua). LPeg is much more powerful and faster than l3regex.