Wow, this is stop-what-you're-doing-to-try-it-out brilliant.

- No-JS needed
- No-HTML wrappers

Just a colr font with built-in syntax highlighting 🤯

What an innovative idea from Heikki Lotvonen 😍
(h/t @argyleink for sharing this with me)

It should be possible to customize the colors in CSS in an upcoming version!

https://blog.glyphdrawing.club/font-with-built-in-syntax-highlighting/

Font with Built-In Syntax Highlighting

An experiment in javascript-free syntax highlighting, made possible by opentype contextual alternates and COLR table

GlyphDrawing.Club -blog
@Una @argyleink woooow, mind blown! 🤯

@Una @argyleink @hexagoncircle

The best ideas feel obvious once you’ve thought of them. 👃

This instantly feels like a big part of the reason colour fonts exist at all. 👏

@Una @argyleink Awesome! We no longer need #CSS Custom Highlight API nor #PrismJS nor #HighlightJS for syntax highlighting thanks to @gdc!