Просмотр исходного кода

feat: add js/ts/tsx modes to codemirror

Peng Xiao 4 лет назад
Родитель
Сommit
3a43d0365b
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/main/frontend/extensions/code.cljs

+ 4 - 0
src/main/frontend/extensions/code.cljs

@@ -16,6 +16,7 @@
             ["codemirror/mode/clojure/clojure"]
             ["codemirror/mode/powershell/powershell"]
             ["codemirror/mode/javascript/javascript"]
+            ["codemirror/mode/jsx/jsx"]
             ["codemirror/mode/clike/clike"]
             ["codemirror/mode/vue/vue"]
             ["codemirror/mode/commonlisp/commonlisp"]
@@ -100,6 +101,9 @@
         "csharp" "text/x-csharp"
         "objective-c" "text/x-objectivec"
         "scala" "text/x-scala"
+        "js" "text/javascript"
+        "ts" "text/typescript"
+        "tsx" "text/typescript-jsx"
         mode))))
 
 (defn render!