[#3191] added client-side validation and syntax highlight for the json field

This commit is contained in:
Gani Georgiev
2023-08-29 22:10:57 +03:00
parent 7d10b3c502
commit a394777264
39 changed files with 437 additions and 317 deletions
+3
View File
@@ -53,6 +53,7 @@
closeBracketsKeymap,
} from "@codemirror/autocomplete";
import { html as htmlLang } from "@codemirror/lang-html";
import { json as jsonLang } from "@codemirror/lang-json";
import { sql, SQLDialect } from "@codemirror/lang-sql";
import { javascript as javascriptLang } from "@codemirror/lang-javascript";
// ---
@@ -160,6 +161,8 @@
switch (language) {
case "html":
return htmlLang();
case "json":
return jsonLang();
case "sql-create-index":
return sql({
// lightweight sql dialect with mostly SELECT statements keywords