- From: Bramus via GitHub <noreply@w3.org>
- Date: Mon, 16 Feb 2026 17:08:22 +0000
- To: public-css-archive@w3.org
I don’t see how riddling content with markers to do syntax highlighting would fare any better than the current span soup approach. I personally see more benefit in something like a `<script type="highlightmap" id="my-highlightmap">` + `<pre highlightedby="my-highlightmap">` in which the browser would do it all by itself. Extra advancage here is that it is perfectly polyfillable, and it would play nice with static HTML that, for example, gets generated from an MD file. Quick POC: https://codepen.io/bramus/full/JoKqGXa _(the page acts as its own demo)_ -- GitHub Notification of comment by bramus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13381#issuecomment-3909611246 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 16 February 2026 17:08:23 UTC