1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-10-30 07:32:39 +01:00

Added support for Pascal language

This commit is contained in:
Albergoni Andrea 2019-10-18 16:34:38 +02:00
parent 16d8a667b1
commit 48c44958f5
2 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import 'codemirror/mode/sql/sql';
import 'codemirror/mode/toml/toml';
import 'codemirror/mode/xml/xml';
import 'codemirror/mode/yaml/yaml';
import 'codemirror/mode/pascal/pascal'
// Addons
import 'codemirror/addon/scroll/scrollpastend';
@ -70,6 +71,7 @@ const modeMap = {
xml: 'xml',
yaml: 'yaml',
yml: 'yaml',
pascal: 'text/x-pascal',
};
/**

View File

@ -32,6 +32,7 @@
<a @click="updateLanguage('SQL')">SQL</a>
<a @click="updateLanguage('XML')">XML</a>
<a @click="updateLanguage('YAML')">YAML</a>
<a @click="updateLanguage('PASCAL')">Pascal</a>
</small>
</div>
<input @keypress.enter="save()" id="code-editor-language" type="text" @input="updateEditorMode(language)" v-model="language">