]> BookStack Code Mirror - bookstack/blobdiff - resources/js/services/code.js
Add close icon to notifications
[bookstack] / resources / js / services / code.js
index 93c3e431f4f5baf7482c898539599f4f8ad2e3e8..26dee5bfb3e5725e5549135cced58f875e4cfe51 100644 (file)
@@ -25,6 +25,7 @@ import 'codemirror/mode/sql/sql';
 import 'codemirror/mode/toml/toml';
 import 'codemirror/mode/xml/xml';
 import 'codemirror/mode/yaml/yaml';
+import 'codemirror/mode/pascal/pascal';
 
 // Addons
 import 'codemirror/addon/scroll/scrollpastend';
@@ -61,6 +62,8 @@ const modeMap = {
     powershell: 'powershell',
     properties: 'properties',
     ocaml: 'mllike',
+    pascal: 'text/x-pascal',
+    pas: 'text/x-pascal',
     php: (content) => {
         return content.includes('<?php') ? 'php' : 'text/x-php';
     },