Syntax highlighting example code - please check [local problem]

Hi all,

Is it my Pygments issue, or the example in page
is not working?

If somebody else could try on their Hugo as well:

{{< highlight go "linenos=inline,hl_lines=2 3" >}}
var a string
var b string
var c string
var d string
{{< / highlight >}}

Can you get the lines 2 & 3 highlighting?


Works fine for me. Check your Pygments version vs the Pygments docs. hl_lines was introduced at one point.

Thank you. I’ll investigate.

As it was I that wrote that doc, it kind of goes without saying that it works for me:

➜  ~  pygmentize -V
Pygments version 1.6, (c) 2006-2013 by Georg Brandl.