▲ Syntax Highlighting using the CSS Custom Highlight API at andreruffert.github.io▼3 up and 0 down, posted by andreruffert 10 hours ago 2 comments
MaxArt 8 hours ago. link 1 point ▲ ▼I love when modern APIs are used for a versatile dev-friendly thing 👍
andreruffert 9 hours ago. link 1 point ▲ ▼👓 <syntax-highlight> element v1.0.0 - A custom element that uses the CSS Custom Highlight API for syntax highlighting. Code highlighting works without modification (no need to wrap each token with a <span> element).