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:
parent
16d8a667b1
commit
48c44958f5
@ -24,6 +24,7 @@ import 'codemirror/mode/sql/sql';
|
|||||||
import 'codemirror/mode/toml/toml';
|
import 'codemirror/mode/toml/toml';
|
||||||
import 'codemirror/mode/xml/xml';
|
import 'codemirror/mode/xml/xml';
|
||||||
import 'codemirror/mode/yaml/yaml';
|
import 'codemirror/mode/yaml/yaml';
|
||||||
|
import 'codemirror/mode/pascal/pascal'
|
||||||
|
|
||||||
// Addons
|
// Addons
|
||||||
import 'codemirror/addon/scroll/scrollpastend';
|
import 'codemirror/addon/scroll/scrollpastend';
|
||||||
@ -70,6 +71,7 @@ const modeMap = {
|
|||||||
xml: 'xml',
|
xml: 'xml',
|
||||||
yaml: 'yaml',
|
yaml: 'yaml',
|
||||||
yml: 'yaml',
|
yml: 'yaml',
|
||||||
|
pascal: 'text/x-pascal',
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
<a @click="updateLanguage('SQL')">SQL</a>
|
<a @click="updateLanguage('SQL')">SQL</a>
|
||||||
<a @click="updateLanguage('XML')">XML</a>
|
<a @click="updateLanguage('XML')">XML</a>
|
||||||
<a @click="updateLanguage('YAML')">YAML</a>
|
<a @click="updateLanguage('YAML')">YAML</a>
|
||||||
|
<a @click="updateLanguage('PASCAL')">Pascal</a>
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
<input @keypress.enter="save()" id="code-editor-language" type="text" @input="updateEditorMode(language)" v-model="language">
|
<input @keypress.enter="save()" id="code-editor-language" type="text" @input="updateEditorMode(language)" v-model="language">
|
||||||
|
Loading…
Reference in New Issue
Block a user