Post
The benefit is that CSS highlights can't impact layout, so there's a performance benefit to using them rather than spans etc. How would highlightmap work? Some standardised tokenizer?
0 reposts4 likes
Here’s a quick POC I threw together: codepen.io/bramus/full/... The Highlight Maps were created using codepen.io/bramus/full/... (which is powered by Prism)
codepen.ioSyntax highlighting code blocks with Highlight Maps and the Custom Highlight API (+ Polyfill)...