Remove full page option and textarea
This commit is contained in:
parent
a005f48a1b
commit
f5d8e82b98
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
<div class="well" style="padding-top: 10px;">
|
<div class="well" style="padding-top: 10px;">
|
||||||
<div class="form-group is-empty" style="margin-top: 0px;">
|
<div class="form-group is-empty" style="margin-top: 0px;">
|
||||||
<textarea class="form-control" rows="20" id="textArea">{{printf "%s" .Body}}</textarea>
|
{{printf "%s" .Body}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
2
main.go
2
main.go
|
@ -193,7 +193,7 @@ func saveHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
func highlight(s string, lang string) (string, error) {
|
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 {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue