Respec: Consider use Prism instead of highlight.js

Created on 7 Jul 2020  路  4Comments  路  Source: w3c/respec

Prism has:

  • arguably better syntax highlighting
  • much simpler language loading
  • scope for some nice extensions.

Syntax highlighting comparison (color schemes are slightly different):

| Highlight.js | Prism |
| -- | -- |
| image | image |
| image | image |
| image | image |
| image | image |
| image | image |
| image | image |

refactoring

All 4 comments

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 馃榿)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marcoscaceres picture marcoscaceres  路  5Comments

saschanaz picture saschanaz  路  6Comments

saschanaz picture saschanaz  路  5Comments

saschanaz picture saschanaz  路  3Comments

marcoscaceres picture marcoscaceres  路  4Comments