From 09830af9073e0e1059935627840dcd3f07d81c6f Mon Sep 17 00:00:00 2001 From: Nate Buttke Date: Thu, 27 Jul 2023 18:11:30 -0700 Subject: highlight.js can just guess the language. --- frontend/index.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'frontend') diff --git a/frontend/index.html b/frontend/index.html index 47060ab..f0284eb 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -74,9 +74,9 @@ } else if(res['loctype'] == "file"){ - leftClass = "language-go" + leftClass = "none" res['text'].forEach((a, i)=>{ - text += '
'+a[0]+'
' + text += '
'+a[0]+'
' text += '

'+a[1]+'

' }) } @@ -99,7 +99,7 @@ $("#spinny").hide(); text = "" data.forEach((a, i)=>{ - text += '
'+a['blob']+'
' + text += '
'+a['blob']+'
' text += '

'+a['summary']+'

' }) $("#main").html(text); @@ -127,6 +127,5 @@ }) - -- cgit v1.2.3