Open sidvishnoi opened 4 years ago
I honestly don't mind which one we use - I no longer maintain hljs, and if Prism has a good community that maintains the software, all the better. I like the hljs style more tho... it has better contrast for me.
I like the hljs style more tho... it has better contrast for me.
Can we control the CSS rules as we do in highlight.js?
Can we control the CSS rules as we do in highlight.js?
You mean the styling (assets/highlight.css), right? If that, yes.
Great, I vote for prism assuming that we can enhance the contrast. (And optionally upstream the changes 😁)
I personally don't have a preference, but just FYI - another benefit of Prism is that it is small. I tried downloading custom packages including syntax highlighting for CSS+HTML+HTTP+JavaScript+JSON+XML, and highlight.js is many times bigger than Prism.
if Prism has a good community that maintains the software, all the better.
Prism has an active developer community
I like the hljs style more tho... it has better contrast for me.
Prism has multiple themes available, and a theme is just a CSS file so making a new one is pretty easy.
Prism has:
Syntax highlighting comparison (color schemes are slightly different):