3 ms·
> that would work with JS highlighting, but not server-generated? Mainly that JS highlighting normally works with a theme variable which is much easier to chan
by zimpenfish 6y ago
> that would work with JS highlighting, but not server-generated?
Mainly that JS highlighting normally works with a theme variable which is much easier to change to get, e.g., a high-contrast theme than having to muck about with 10-20 different CSS styles.
Ignoring that option, working with a known set of CSS styles in the DOM is going to be easier than dealing with John Q Random's own particular set for highlighting (assuming they haven't used the same as a popular JS highlighter, of course!)
(To my shame, whatever Hugo is now using for syntax highlighting makes an awful mess - everything is "style:color#123456", no semantic information - I'll be fixing that ASAP.)