PrismJS / prism

Lightweight, robust, elegant syntax highlighting.
https://prismjs.com
MIT License
12.34k stars 1.29k forks source link

Jsonnet language syntax support #3803

Open zalegrala opened 5 months ago

zalegrala commented 5 months ago

Motivation

I'd like to write an article about Jsonnet, but I see there is no support for this langugage in Prism. It would be nice to have syntax highlighting for all the normal reasons.

https://jsonnet.org/ref/spec.html

Description

As a slightly niche langugage for configuration, it might be nice to have more articles support this syntax so that we can tell folks the joy of using it. :)

If nobody wants to pick this up, perhaps folks can help steer me in the right direction, and I can make a PR that attempts this, though I've not written a prism spec highlighter before.

Alternatives Live without syntax highlighting.