mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-22 22:59:58 +08:00
Renamed properties input option as INI
- Also made INI be recognised as the codemirror "Properties" format.
This commit is contained in:
@ -29,6 +29,8 @@ import 'codemirror/mode/yaml/yaml';
|
|||||||
// Addons
|
// Addons
|
||||||
import 'codemirror/addon/scroll/scrollpastend';
|
import 'codemirror/addon/scroll/scrollpastend';
|
||||||
|
|
||||||
|
// Mapping of potential languages or formats from user input
|
||||||
|
// to their proper codemirror modes.
|
||||||
const modeMap = {
|
const modeMap = {
|
||||||
css: 'css',
|
css: 'css',
|
||||||
c: 'text/x-csrc',
|
c: 'text/x-csrc',
|
||||||
@ -43,7 +45,7 @@ const modeMap = {
|
|||||||
haskell: 'haskell',
|
haskell: 'haskell',
|
||||||
hs: 'haskell',
|
hs: 'haskell',
|
||||||
html: 'htmlmixed',
|
html: 'htmlmixed',
|
||||||
ini: 'ini',
|
ini: 'properties',
|
||||||
javascript: 'javascript',
|
javascript: 'javascript',
|
||||||
json: {name: 'javascript', json: true},
|
json: {name: 'javascript', json: true},
|
||||||
js: 'javascript',
|
js: 'javascript',
|
||||||
|
@ -602,7 +602,7 @@ body.flexbox-support #entity-selector-wrap .popup-body .form-group {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#code-editor .lang-options {
|
#code-editor .lang-options {
|
||||||
max-width: 400px;
|
max-width: 480px;
|
||||||
margin-bottom: $-s;
|
margin-bottom: $-s;
|
||||||
a {
|
a {
|
||||||
margin-right: $-xs;
|
margin-right: $-xs;
|
||||||
|
@ -18,13 +18,13 @@
|
|||||||
<a @click="updateLanguage('C#')">C#</a>
|
<a @click="updateLanguage('C#')">C#</a>
|
||||||
<a @click="updateLanguage('Go')">Go</a>
|
<a @click="updateLanguage('Go')">Go</a>
|
||||||
<a @click="updateLanguage('HTML')">HTML</a>
|
<a @click="updateLanguage('HTML')">HTML</a>
|
||||||
|
<a @click="updateLanguage('INI')">INI</a>
|
||||||
<a @click="updateLanguage('Java')">Java</a>
|
<a @click="updateLanguage('Java')">Java</a>
|
||||||
<a @click="updateLanguage('JavaScript')">JavaScript</a>
|
<a @click="updateLanguage('JavaScript')">JavaScript</a>
|
||||||
<a @click="updateLanguage('JSON')">JSON</a>
|
<a @click="updateLanguage('JSON')">JSON</a>
|
||||||
<a @click="updateLanguage('Lua')">Lua</a>
|
<a @click="updateLanguage('Lua')">Lua</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('Properties')">Properties</a>
|
|
||||||
<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('Python')">Python</a>
|
<a @click="updateLanguage('Python')">Python</a>
|
||||||
|
Reference in New Issue
Block a user