Add line numbers

This commit is contained in:
Eliot Whalan 2016-06-11 13:16:31 +10:00
parent 2e3b194bcd
commit a8b31ce373

View File

@ -66,7 +66,7 @@ func pasteHandler(w http.ResponseWriter, r *http.Request) {
check(err)
if param2 != "" {
highlight := pygments.Highlight(string(s), param2, "html", "full, style=autumn,", "utf-8")
highlight := pygments.Highlight(string(s), param2, "html", "full, style=autumn,linenos=True, lineanchors=True,anchorlinenos=True,", "utf-8")
io.WriteString(w, string(highlight))
} else {
io.WriteString(w, string(s))