From ff470e2834c244806934d7301a137f18a7b917ce Mon Sep 17 00:00:00 2001 From: lizzie Date: Tue, 4 Aug 2026 04:36:55 +0000 Subject: [PATCH 1/2] feat: add bash and json highlight Signed-off-by: lizzie --- src/webpage/highlighter/clike/langs.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/webpage/highlighter/clike/langs.json b/src/webpage/highlighter/clike/langs.json index 40b8743..81df893 100644 --- a/src/webpage/highlighter/clike/langs.json +++ b/src/webpage/highlighter/clike/langs.json @@ -7,6 +7,10 @@ "multilineSlashComments": true, "JSLikeTemplateStrings": true }, +{ + "names":["json"], + "keywords":["true","false","null"] +}, { "names":["h","c","hc","c23","c89","ansic","ansi-c","khr-c","khrc"], "keywords":["auto", "break", "case", "char", "continue", "do", "default", "const", "double", "else", "enum", "extern", "for", "if", "goto", "float", "int", "long", "register", "return", "signed", "static", "sizeof", "short", "struct", "switch", "typedef", "union", "void", "while", "volatile", "unsigned"], @@ -85,5 +89,13 @@ "doubleSlashComments": true, "multilineSlashComments": true, "multiLine":"\"\"\"" +}, +{ + "names":["bash","sh","ksh","csh","shell"], + "keywords":["if","fi","else","then","while","do","for","continue","done","break","case","esac","in","local","return","declare","EOF","readonly","true","false"], + "firstLineShebang":true, + "hashComments": true, + "doubleSlashComments": false, + "multilineSlashComments": false } ] From af5794622c920d0a64ad7e9a525573a82b4058fc Mon Sep 17 00:00:00 2001 From: lizzie Date: Tue, 4 Aug 2026 14:46:29 +0000 Subject: [PATCH 2/2] not json --- src/webpage/highlighter/clike/langs.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/webpage/highlighter/clike/langs.json b/src/webpage/highlighter/clike/langs.json index 81df893..1624a79 100644 --- a/src/webpage/highlighter/clike/langs.json +++ b/src/webpage/highlighter/clike/langs.json @@ -7,10 +7,6 @@ "multilineSlashComments": true, "JSLikeTemplateStrings": true }, -{ - "names":["json"], - "keywords":["true","false","null"] -}, { "names":["h","c","hc","c23","c89","ansic","ansi-c","khr-c","khrc"], "keywords":["auto", "break", "case", "char", "continue", "do", "default", "const", "double", "else", "enum", "extern", "for", "if", "goto", "float", "int", "long", "register", "return", "signed", "static", "sizeof", "short", "struct", "switch", "typedef", "union", "void", "while", "volatile", "unsigned"],