Hi all,
Is it my Pygments issue, or the example in page http://gohugo.io/extras/highlighting/
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?
cheers,
Roy
bep
2
Works fine for me. Check your Pygments version vs the Pygments docs. hl_lines was introduced at one point.
Thank you. I’ll investigate.
bep
4
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.