Adding code blocks to websites

I see some websites and blogs like this have these really nicely styled code blocks with syntax highlighting and everything, is there a good or easy way to achieve this?
No description
5 Replies
Jochem2mo ago
haven't used it myself, but that's what most people use when they need syntax highlighting
Bolvarsdad2mo ago
tysm Also so I don't have to open up another post, how do people deal with growing websites? Like say I spend a lot of time building a nice layout, then some time later I decide I want to change something, how do they deal with having to make that same style change to every other child page?
Jochem2mo ago
That's a topic for #discussions, please make a post there
ἔρως2mo ago
this is used by big websites, like stackoverflow and the number of supported languages is bonkers