🚀 I made a smol ~2kb syntax highlighter that uses the CSS `::highlight()` API. ...

@davatron5000@mastodon.social

🚀 I made a smol ~2kb syntax highlighter that uses the CSS `::highlight()` API.

- About 2 KiB compressed
- No runtime dependencies
- Uses `::highlight()` not `<span>`
- Languages loaded on-demand
- Human readable CSS themes + light-dark()
- Editable code block support
- And a custom element for more features!

davatron5000.github.io/microli