Add line numbers to codelines shortode.
This commit is contained in:
parent
f6ca13d6dc
commit
09b90c3bbc
|
@ -6,4 +6,4 @@
|
||||||
{{ .Scratch.Set "u" $t }}
|
{{ .Scratch.Set "u" $t }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $v := first (add (sub (int (.Get 3)) (int (.Get 2))) 1) (.Scratch.Get "u") }}
|
{{ $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)) }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user