diff --git a/assets/paste.html b/assets/paste.html index 25f00a5..3bf1c2e 100644 --- a/assets/paste.html +++ b/assets/paste.html @@ -32,7 +32,7 @@
- + {{printf "%s" .Body}}
diff --git a/main.go b/main.go index 115b083..ece7de4 100644 --- a/main.go +++ b/main.go @@ -193,7 +193,7 @@ func saveHandler(w http.ResponseWriter, r *http.Request) { func highlight(s string, lang string) (string, error) { - highlight, err := pygments.Highlight(html.UnescapeString(s), html.EscapeString(lang), "html", "full, style=autumn,linenos=True, lineanchors=True,anchorlinenos=True,", "utf-8") + highlight, err := pygments.Highlight(html.UnescapeString(s), html.EscapeString(lang), "html", "style=autumn,linenos=True, lineanchors=True,anchorlinenos=True,", "utf-8") if err != nil { return "", err }