We need a mode that accepts a source file and just performs syntax highlighting. Based on #177 it should recover from lexical errors as much as possible so that all inputs produce some reasonable output. Take this fragment as an example:
define hello (
It should be able to produce raw syntax highlighting information consisting of source spans and lexical categories for each token in JSON:
We need a mode that accepts a source file and just performs syntax highlighting. Based on #177 it should recover from lexical errors as much as possible so that all inputs produce some reasonable output. Take this fragment as an example:
It should be able to produce raw syntax highlighting information consisting of source spans and lexical categories for each token in JSON:
It should also be able to directly generate a syntax-highlighted source file as HTML, preserving formatting:
Other output formats such as sourcemaps, RTF, and LaTeX would be nice to have but aren’t critical.