Add line numbers

This commit is contained in:
Eliot Whalan 2016-06-11 13:16:31 +10:00
parent 2e3b194bcd
commit a8b31ce373
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ func pasteHandler(w http.ResponseWriter, r *http.Request) {
check(err) check(err)
if param2 != "" { 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)) io.WriteString(w, string(highlight))
} else { } else {
io.WriteString(w, string(s)) io.WriteString(w, string(s))