diff --git a/html/header.html b/html/header.html index 0cdb721..16a2f8f 100644 --- a/html/header.html +++ b/html/header.html @@ -2,8 +2,29 @@
+{{CONTENT}} - ++ + ++diff --git a/templ.go b/templ.go index f12fbd6..8c290fa 100644 --- a/templ.go +++ b/templ.go @@ -34,8 +34,29 @@ import ( "io/ioutil" "os" "regexp" + "strings" + "strconv" ) +func format_rows(content string) (string) { + + var ret string + + lines := strings.Split(content, "\n") + + ret += "Raw paste:+ +
"+ strconv.Itoa(l_num+1) + " | "
+ ret += ""+ l +" | "
+ ret += "