speed-highlight / core

A lightweight syntax highlighter written in JavaScript
https://speed-highlight.github.io/core/examples/
Creative Commons Zero v1.0 Universal
257 stars 14 forks source link

[FEATURE] Consider supporting prismjs language syntax rules #44

Open markg85 opened 3 months ago

markg85 commented 3 months ago

Is your feature request related to a problem? Please describe. While this library is neat and fast, it has highlighting issues. Why re-invent the highlight rules when there's other projects out there that have already solved it.

Describe the solution you'd like I think it makes sense to at least also support the well-established prismjs language files. It does require speed-highlight to adapt to their format. But given that you'd re-use their format + gain support for all the languages they have it might be a worthwile consideration?

Describe alternatives you've considered I did use prismjs. Moved to this library because it's still maintained, fast and i like it's themes better :)