mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-25 11:45:58 +00:00
Added support for Pascal language
This commit is contained in:
parent
16d8a667b1
commit
48c44958f5
@ -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',
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user