Skip to content

Syntax highlighting in the backend #11

@LordMZTE

Description

@LordMZTE

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions