mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-26 20:22:18 +00:00
Merge branch 'master' of git://github.com/albergoniSivaf/BookStack into albergoniSivaf-master
This commit is contained in:
commit
891dbfe085
@ -25,6 +25,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';
|
||||||
@ -78,6 +79,7 @@ const modeMap = {
|
|||||||
xml: 'xml',
|
xml: 'xml',
|
||||||
yaml: 'yaml',
|
yaml: 'yaml',
|
||||||
yml: 'yaml',
|
yml: 'yaml',
|
||||||
|
pascal: 'text/x-pascal',
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,6 +33,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