-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Currently, wool uses PrismJS (in the frontend) to do syntax highlighting.
This seems like a rather clunky approach, as it is slow (it's js after all), reliant on the browser (making the HTML file less flexible) and it also doesn't even seem to support all that many languages.
I suggest, that we alternatively use the syntect crate which has a convenient HTML output module which we could use to generate syntax highlighting in rust.
The syntect crate is also easily expandable, as it allows adding language support using sublime syntax definitions.
I am willing to help implement this, as this project looks really promising, but currently pretty unfinished.
If we implement this, we could also enable syntax highlighting by default!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels