-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax highlighting mode #189
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: