mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-26 20:22:18 +00:00
Updated code editor language lists
To align and update supported languages. Related to #3511 and #3494
This commit is contained in:
parent
f39b565a1c
commit
1e41546e51
@ -50,16 +50,18 @@ const modeMap = {
|
|||||||
diff: 'diff',
|
diff: 'diff',
|
||||||
for: 'fortran',
|
for: 'fortran',
|
||||||
fortran: 'fortran',
|
fortran: 'fortran',
|
||||||
|
'f#': 'text/x-fsharp',
|
||||||
|
fsharp: 'text/x-fsharp',
|
||||||
go: 'go',
|
go: 'go',
|
||||||
haskell: 'haskell',
|
haskell: 'haskell',
|
||||||
hs: 'haskell',
|
hs: 'haskell',
|
||||||
html: 'htmlmixed',
|
html: 'htmlmixed',
|
||||||
ini: 'properties',
|
ini: 'properties',
|
||||||
javascript: 'javascript',
|
javascript: 'text/javascript',
|
||||||
json: {name: 'javascript', json: true},
|
json: 'application/json',
|
||||||
js: 'javascript',
|
js: 'text/javascript',
|
||||||
jl: 'julia',
|
jl: 'text/x-julia',
|
||||||
julia: 'julia',
|
julia: 'text/x-julia',
|
||||||
latex: 'text/x-stex',
|
latex: 'text/x-stex',
|
||||||
lua: 'lua',
|
lua: 'lua',
|
||||||
md: 'markdown',
|
md: 'markdown',
|
||||||
@ -71,7 +73,7 @@ const modeMap = {
|
|||||||
pl: 'perl',
|
pl: 'perl',
|
||||||
powershell: 'powershell',
|
powershell: 'powershell',
|
||||||
properties: 'properties',
|
properties: 'properties',
|
||||||
ocaml: 'mllike',
|
ocaml: 'text/x-ocaml',
|
||||||
pascal: 'text/x-pascal',
|
pascal: 'text/x-pascal',
|
||||||
pas: 'text/x-pascal',
|
pas: 'text/x-pascal',
|
||||||
php: (content) => {
|
php: (content) => {
|
||||||
@ -88,6 +90,8 @@ const modeMap = {
|
|||||||
stext: 'text/x-stex',
|
stext: 'text/x-stex',
|
||||||
bash: 'shell',
|
bash: 'shell',
|
||||||
toml: 'toml',
|
toml: 'toml',
|
||||||
|
ts: 'text/typescript',
|
||||||
|
typescript: 'text/typescript',
|
||||||
sql: 'text/x-sql',
|
sql: 'text/x-sql',
|
||||||
vbs: 'vbscript',
|
vbs: 'vbscript',
|
||||||
vbscript: 'vbscript',
|
vbscript: 'vbscript',
|
||||||
|
@ -23,25 +23,33 @@
|
|||||||
<button type="button" refs="code-editor@languageLink" data-lang="C">C</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="C">C</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="C++">C++</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="C++">C++</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="C#">C#</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="C#">C#</button>
|
||||||
|
<button type="button" refs="code-editor@languageLink" data-lang="diff">Diff</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="Fortran">Fortran</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="Fortran">Fortran</button>
|
||||||
|
<button type="button" refs="code-editor@languageLink" data-lang="F#">F#</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="Go">Go</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="Go">Go</button>
|
||||||
|
<button type="button" refs="code-editor@languageLink" data-lang="Haskell">Haskell</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="HTML">HTML</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="HTML">HTML</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="INI">INI</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="INI">INI</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="Java">Java</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="Java">Java</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="JavaScript">JavaScript</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="JavaScript">JavaScript</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="JSON">JSON</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="JSON">JSON</button>
|
||||||
|
<button type="button" refs="code-editor@languageLink" data-lang="Julia">Julia</button>
|
||||||
|
<button type="button" refs="code-editor@languageLink" data-lang="kotlin">Kotlin</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="LaTeX">LaTeX</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="LaTeX">LaTeX</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="Lua">Lua</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="Lua">Lua</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="MarkDown">MarkDown</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="MarkDown">MarkDown</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="Nginx">Nginx</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="Nginx">Nginx</button>
|
||||||
|
<button type="button" refs="code-editor@languageLink" data-lang="ocaml">OCaml</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="PASCAL">Pascal</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="PASCAL">Pascal</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="Perl">Perl</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="Perl">Perl</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="PHP">PHP</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="PHP">PHP</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="Powershell">Powershell</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="Powershell">Powershell</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="Python">Python</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="Python">Python</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="Ruby">Ruby</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="Ruby">Ruby</button>
|
||||||
|
<button type="button" refs="code-editor@languageLink" data-lang="rust">Rust</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="shell">Shell/Bash</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="shell">Shell/Bash</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="SQL">SQL</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="SQL">SQL</button>
|
||||||
|
<button type="button" refs="code-editor@languageLink" data-lang="typescript">TypeScript</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="VBScript">VBScript</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="VBScript">VBScript</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="VB.NET">VB.NET</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="VB.NET">VB.NET</button>
|
||||||
<button type="button" refs="code-editor@languageLink" data-lang="XML">XML</button>
|
<button type="button" refs="code-editor@languageLink" data-lang="XML">XML</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user