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/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/php/php'; import 'codemirror/mode/php/php';
import 'codemirror/mode/powershell/powershell'; import 'codemirror/mode/powershell/powershell';
import 'codemirror/mode/properties/properties'; import 'codemirror/mode/properties/properties';
@ -59,6 +60,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

@ -26,6 +26,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>