Are there programming language syntax highlighters in pure CSS with no reliance on JS?
[#]programming #webdeveloment #css
=> More informations about this toot | More toots from profoundlynerdy@bitbang.social
@profoundlynerdy
I think @amin would know
=> More informations about this toot | More toots from rl_dane@polymaths.social
@rl_dane @profoundlynerdy @amin This came up for me in a search.
=> More informations about this toot | More toots from roguefoam@polymaths.social
@roguefoam @rl_dane @amin Yep, that was just about the only useful link I was able to find in my own search.
=> More informations about this toot | More toots from profoundlynerdy@bitbang.social
@profoundlynerdy that sounds difficult
=> More informations about this toot | More toots from anselmschueler@ieji.de
@profoundlynerdy The only real way to do so is with something like this: https://blog.glyphdrawing.club/font-with-built-in-syntax-highlighting/ — using a color font and all the logic you can incorporate into it for this.
Otherwise, CSS does not provide any tools that will help with this (unless we're talking about still using JS or another language to statically highlight some code and output the result as HTML&CSS — there are plenty of solutions for that).
=> More informations about this toot | More toots from kizu@front-end.social This content has been proxied by September (3851b).Proxy Information
text/gemini