10 lines
365 B
HTML
10 lines
365 B
HTML
{{ $opts := slice "lineNos=table" "tabWidth=2" "noClasses=false" "style=fruity" }}
|
|
{{ if .Get 1 }}
|
|
{{ $opts = $opts | append (split (.Get 1) ",") }}
|
|
{{ end }}
|
|
{{ $content := .Inner }}
|
|
{{ $in := split .Inner "\n" }}
|
|
{{ if gt (len $in) 1 }}
|
|
{{ $content = (delimit $in "\n") }}
|
|
{{ end }}
|
|
{{ transform.Highlight (htmlUnescape $content) (.Get 0) (delimit $opts ",") }} |