How to set syntax highlight style?

Using this tag

{{< highlight go >}}
var hi = “hi”;
{{< / highlight >}}

Wondering how I can go about setting the syntax highlighting style, and what style options are available.

Here’s the Hugo Docs on Syntax Highlighting for convenience:

Also wondering how to do the same for regular double tilde markdown tag.

Does that convenient link not answer your question?

It does, but I’m not sure on syntax :man_shrugging:

I tried

{{< highlight go “pygmentsStyle=monokai” >}}
var hi = “hi”;
{{< / highlight >}}

But that doesn’t seem right.

Got it.
Goes in config.toml
I also had pygmentsUseClasses set to true previously.

What a lovely thread :man_facepalming:

1 Like