CSS only syntax highlighting system uses just a single element and can function in pure CSS (for displaying snippets) No elements for each different part of syntax that is highlighted, no bulky JavaScript libraries to render everything. So while the demo may not look that impressive, the 99.8% data saving is pretty impressive.

6m read timeFrom dev.to
Post cover image
Table of contents
An exampleSo what?Explanation: how does it work?But if it is that easy, then why doesn't everyone do this?The Snippet generatorBut...why?So what do you think?
3 Comments

Sort: