]> BookStack Code Mirror - bookstack/blobdiff - resources/js/services/code.js
Add Perl syntax higlighting to code editor
[bookstack] / resources / js / services / code.js
index 0c5f75db3f054880f4157bcc96d211050a95dbbb..27413764ac7697dd316d184ca4977ef1cee73a10 100644 (file)
@@ -14,6 +14,7 @@ import 'codemirror/mode/haskell/haskell';
 import 'codemirror/mode/markdown/markdown';
 import 'codemirror/mode/mllike/mllike';
 import 'codemirror/mode/nginx/nginx';
+import 'codemirror/mode/perl/perl';
 import 'codemirror/mode/php/php';
 import 'codemirror/mode/powershell/powershell';
 import 'codemirror/mode/properties/properties';
@@ -59,6 +60,8 @@ const modeMap = {
     markdown: 'markdown',
     ml: 'mllike',
     nginx: 'nginx',
+    perl: 'perl',
+    pl: 'perl',
     powershell: 'powershell',
     properties: 'properties',
     ocaml: 'mllike',