From a8b31ce373bd802b1522425224852da8ef0daa30 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Sat, 11 Jun 2016 13:16:31 +1000 Subject: [PATCH] Add line numbers --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 5dbc999..2080b54 100644 --- a/main.go +++ b/main.go @@ -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))