The tips from @jkboxomine are correct. I just want to add that while the settings pygmentsCodeFences etc. works, I reorganized all of this in Hugo 0.60:
You can see the default config here:
In short:
- Highlighting in code fences is now default on
- Default is to use inline styles (as in no stylesheet needed)