Code fences failing to highlight

I saw a bunch of questions relating to code fences but they don’t seem to match my specific issue. When I use code fences around my code, I lose all syntax highlighting.

This is what I have in my config.toml:

[Params]
  pygmentsCodeFences = true
  pygmentsUseClasses = true

And this is how I generated the stylesheet for the CSS classes:

hugo gen chromastyles --style=monokai > syntax.css

Am I missing something?

These needs to be outside of params:

pygmentsCodeFences = true
pygmentsUseClasses = true

2 Likes

Whaaaaaaaat [mind blows]
Thanks for your help!