Add line numbers to codelines shortode.

This commit is contained in:
Danila Fedorin 2020-06-18 22:30:01 -07:00
parent f6ca13d6dc
commit 09b90c3bbc

View File

@ -6,4 +6,4 @@
{{ .Scratch.Set "u" $t }}
{{ end }}
{{ $v := first (add (sub (int (.Get 3)) (int (.Get 2))) 1) (.Scratch.Get "u") }}
{{ highlight (delimit $v "\n") (.Get 0) "" }}
{{ highlight (delimit $v "\n") (.Get 0) (printf "linenos=table,linenostart=%d" (.Get 2)) }}