Merge branch 'perl_syntax_highlight' of git://github.com/Iyeyasu/BookStack into Iyeyasu-perl_syntax_highlight

This commit is contained in:
Dan Brown 2020-03-06 19:54:15 +00:00
commit 56be10f1cd
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@ import 'codemirror/mode/lua/lua';
import 'codemirror/mode/markdown/markdown'; import 'codemirror/mode/markdown/markdown';
import 'codemirror/mode/mllike/mllike'; import 'codemirror/mode/mllike/mllike';
import 'codemirror/mode/nginx/nginx'; import 'codemirror/mode/nginx/nginx';
import 'codemirror/mode/perl/perl';
import 'codemirror/mode/pascal/pascal'; import 'codemirror/mode/pascal/pascal';
import 'codemirror/mode/php/php'; import 'codemirror/mode/php/php';
import 'codemirror/mode/powershell/powershell'; import 'codemirror/mode/powershell/powershell';
@ -62,6 +63,8 @@ const modeMap = {
markdown: 'markdown', markdown: 'markdown',
ml: 'mllike', ml: 'mllike',
nginx: 'nginx', nginx: 'nginx',
perl: 'perl',
pl: 'perl',
powershell: 'powershell', powershell: 'powershell',
properties: 'properties', properties: 'properties',
ocaml: 'mllike', ocaml: 'mllike',

View File

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