From: D4rt Date: Sun, 19 Jan 2020 05:41:18 +0000 (+0200) Subject: Add Perl syntax higlighting to code editor X-Git-Tag: v0.28.3~1^2~19^2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/refs/pull/1851/head?ds=sidebyside Add Perl syntax higlighting to code editor --- diff --git a/resources/js/services/code.js b/resources/js/services/code.js index 0c5f75db3..27413764a 100644 --- a/resources/js/services/code.js +++ b/resources/js/services/code.js @@ -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', diff --git a/resources/views/components/code-editor.blade.php b/resources/views/components/code-editor.blade.php index 70ffc350f..f6d93f2cd 100644 --- a/resources/views/components/code-editor.blade.php +++ b/resources/views/components/code-editor.blade.php @@ -26,6 +26,7 @@ MarkDown Nginx Pascal + Perl PHP Powershell Python