{0 Higlo}

Higlo is an OCaml library for syntax highlighting. Higlo could
mean {b Hig}h{b l}ighting in {b O}caml.

The purpose of Higlo is not to provide syntax highlighting for every language,
nor target every format (HTML, LaTeX, ...). It provides a simple way to
support additional languages and develop the generator for the output
format you need.

By now, only some input languages are supported (OCaml, XML, JSON and Graphviz/dot), and it only
generates {!Xtmpl.Rewrite.tree}
to highlight code in XML. Developing support for additional input languages
is just a matter of writing a Sedlex lexer. Supporting another output
format only requires mapping values of type {!Higlo.Lang.token}.

See the {{:https://framagit.org/zoggy/higlo/-/blob/master/lib/ocaml.ml}OCaml lexer}
for an example of Higlo Sedlex lexer.

{1:api API}

The API consists in these modules: {!Higlo.Lang}, {!Higlo.Printers}.
