Nostr'a Katılın
2026-02-06 10:14:45 UTC
in reply to

Andrew on Nostr: At some point, I will need to write about my idea for code highlighting. As you can ...

At some point, I will need to write about my idea for code highlighting. As you can see, I only use <span>s for “built-in” stuff and <strong>s for user input (which makes it reasonably readable in RSS). There are only three colors: punctuation is a third. I could also use <em>s for comments inside the code itself, but never had a reason to. I don't know how it is for others, but it's great for me and not that hard to implement by hand.