Post
Seems interesting, but it's still going to riddle the DOM with ranges. You just won't see them. It also increases the change that you'll mutate the content of the element but forget to update the highlightmap.
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)...