]> BookStack Code Mirror - bookstack/commitdiff
Add support for properties (INI)
authorConnor O'Shea <redacted>
Mon, 16 Sep 2019 00:20:11 +0000 (20:20 -0400)
committerGitHub <redacted>
Mon, 16 Sep 2019 00:20:11 +0000 (20:20 -0400)
resources/js/services/code.js

index 1e0e48289d595132a5ef0e08d006d3c249352d3f..7dddc92fd247f3fd11cc2b91bb8794a8e94c8607 100644 (file)
@@ -16,6 +16,7 @@ import 'codemirror/mode/mllike/mllike';
 import 'codemirror/mode/nginx/nginx';
 import 'codemirror/mode/php/php';
 import 'codemirror/mode/powershell/powershell';
+import 'codemirror/mode/properties/properties';
 import 'codemirror/mode/python/python';
 import 'codemirror/mode/ruby/ruby';
 import 'codemirror/mode/rust/rust';
@@ -42,6 +43,7 @@ const modeMap = {
     haskell: 'haskell',
     hs: 'haskell',
     html: 'htmlmixed',
+    ini: 'text/x-ini',
     javascript: 'javascript',
     json: {name: 'javascript', json: true},
     js: 'javascript',
@@ -54,6 +56,7 @@ const modeMap = {
     ml: 'mllike',
     nginx: 'nginx',
     powershell: 'powershell',
+    properties: 'text/x-properties',
     ocaml: 'mllike',
     php: 'php',
     py: 'python',