]> BookStack Code Mirror - bookstack/blobdiff - resources/js/services/code.js
Add the "Create Shelf" resp. "Create Book" to the home view
[bookstack] / resources / js / services / code.js
index 70355643d51069eccfa4f261f66dcf58aacd3c72..f69f28b8e96f7db6498260681925153acc49f6a0 100644 (file)
@@ -29,6 +29,8 @@ import 'codemirror/mode/yaml/yaml';
 // Addons
 import 'codemirror/addon/scroll/scrollpastend';
 
+// Mapping of potential languages or formats from user input
+// to their proper codemirror modes.
 const modeMap = {
     css: 'css',
     c: 'text/x-csrc',
@@ -43,7 +45,7 @@ const modeMap = {
     haskell: 'haskell',
     hs: 'haskell',
     html: 'htmlmixed',
-    ini: 'ini',
+    ini: 'properties',
     javascript: 'javascript',
     json: {name: 'javascript', json: true},
     js: 'javascript',