overhaul syntax highlighting and line numbering for large pastes

This commit is contained in:
2026-04-27 01:16:42 +02:00
parent 65dd4388b1
commit b516742529
9 changed files with 128 additions and 124 deletions
-6
View File
@@ -98,9 +98,6 @@ func (h *HttpHandler) HandleSet(w http.ResponseWriter, r *http.Request) {
func (h *HttpHandler) HandleGet(w http.ResponseWriter, r *http.Request) {
id := r.PathValue("id")
if index := strings.LastIndex(id, "."); index > 0 {
id = id[:index]
}
paste, exists, err := h.store.Get(id)
if err != nil {
@@ -131,9 +128,6 @@ func (h *HttpHandler) HandleGet(w http.ResponseWriter, r *http.Request) {
func (h *HttpHandler) HandleRaw(w http.ResponseWriter, r *http.Request) {
id := r.PathValue("id")
if index := strings.LastIndex(id, "."); index > 0 {
id = id[:index]
}
paste, exists, err := h.store.Get(id)
if err != nil {