Open peterbe opened 9 years ago
In the theme I designed I am using prismjs [http://prismjs.com/]
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. :)
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.
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.