AakLak
1
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.
Thanks.
Here’s the Hugo Docs on Syntax Highlighting for convenience:
Also wondering how to do the same for regular double tilde markdown tag.
bep
2
Does that convenient link not answer your question?
AakLak
3
It does, but I’m not sure on syntax
I tried
{{< highlight go “pygmentsStyle=monokai” >}}
var hi = “hi”;
{{< / highlight >}}
But that doesn’t seem right.
AakLak
4
Got it.
Goes in config.toml
I also had pygmentsUseClasses set to true previously.
What a lovely thread
1 Like