mozilla / contribute.json

A JSON schema for open-source project contribution data.
https://www.contributejson.org/
Mozilla Public License 2.0
41 stars 29 forks source link

Syntax highlight JSON with https://highlightjs.org/ #29

Open peterbe opened 9 years ago

peterbe commented 9 years ago

https://highlightjs.org/ seems the best tool for the job these days. There's also https://github.com/pc035860/angular-highlightjs which might make things easier.

ghost commented 9 years ago

In the theme I designed I am using prismjs [http://prismjs.com/]

peterbe commented 9 years ago

I tried prismjs and I was not impressed. It think it works better if the <pre> tag and its content is generated on the server already and then, on window.onload it can convert those. In our case we use Angular to generate the <pre> tags. Also, prismjs doesn't have JSON as a lexer. :)

ghost commented 9 years ago

Yeah, the JSON lexer support is a bummer but I know there is current work to add that. I am not sold on prism so, we can use whatever works best in this context.