I had tried that, but I didn’t know where to put it, and I didn’t realize that I then had to put it in the HTML (which I don’t have). I tried with noClasses = true but that didn’t use the style I set either, and when I did that the light/dark mode for code didn’t work right, or rather didn’t change.
Yes, I read that document, and have googled all over with no luck.
I agree with you, and to be honest, I have no idea what classes even means… what does that term mean here? either way I have syntax highlighting and either way I haven’t been able to get it to change.
Noclasses = true (rather classes= false) means that the highlighter uses style attributes directly. Bloated, ugly code.
Noclasses = false (rather classes=true) means that the highlighter uses classnames (smaller, nicer code). On the other hand, you have to generate the CSS with the class definitions as described in the documentation. And of course you have to include it in (one of) your templates. How else would the browser know about it. Unfortunately, the documentation brushes over that requirement.
I don’t that you have “no HTML”, as you said. No HTML means no templates which makes your work with Hugo perhaps a bit painful.