1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-11-24 11:52:34 +01:00

Add Perl syntax higlighting to code editor

This commit is contained in:
D4rt 2020-01-19 07:41:18 +02:00
parent 5ff89a1abb
commit b059744fb5
2 changed files with 4 additions and 0 deletions

View 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',

View File

@ -26,6 +26,7 @@
<a @click="updateLanguage('MarkDown')">MarkDown</a>
<a @click="updateLanguage('Nginx')">Nginx</a>
<a @click="updateLanguage('PASCAL')">Pascal</a>
<a @click="updateLanguage('Perl')">Perl</a>
<a @click="updateLanguage('PHP')">PHP</a>
<a @click="updateLanguage('Powershell')">Powershell</a>
<a @click="updateLanguage('Python')">Python</a>