I’ve been trying without success to get the Chroma Syntax Highlighting to work. I’ve generated the css file correctly, and set same properly in my headers – I get the correct background color, code color and font. My config has CodeFences set to true, and pygmentsUseClasses is also set to true.
When I inspect the generated code, however, there is no Chroma code at al in what is generated apart from the initial <pre class=“chroma”>
I’ve tried it now with HTML, PHP and Python, and in every case, the result is the same: No Chroma classes added to any of the code.
Is there some additional step not noted in the Documentation?
It’s hard with no code exemple to guess the problem but do you specify the language when using CodeFences and if not do you have pygmentsCodefencesGuessSyntax = true in your config?
Hi, I have the same problem. These are the configuration params of my weblog:
$ hugo env
Hugo Static Site Generator v0.31.1 linux/386 BuildDate: 2017-11-27T14:56:27+03:30
GOOS=“linux”
GOARCH=“386”
GOVERSION=“go1.9.2”