0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-18 06:11:03 +00:00

Updated code editor language lists

To align and update supported languages.

Related to  and 
This commit is contained in:
Dan Brown 2022-06-20 17:49:56 +01:00
parent f39b565a1c
commit 1e41546e51
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
2 changed files with 18 additions and 6 deletions
resources/js

View file

@ -50,16 +50,18 @@ const modeMap = {
diff: 'diff',
for: 'fortran',
fortran: 'fortran',
'f#': 'text/x-fsharp',
fsharp: 'text/x-fsharp',
go: 'go',
haskell: 'haskell',
hs: 'haskell',
html: 'htmlmixed',
ini: 'properties',
javascript: 'javascript',
json: {name: 'javascript', json: true},
js: 'javascript',
jl: 'julia',
julia: 'julia',
javascript: 'text/javascript',
json: 'application/json',
js: 'text/javascript',
jl: 'text/x-julia',
julia: 'text/x-julia',
latex: 'text/x-stex',
lua: 'lua',
md: 'markdown',
@ -71,7 +73,7 @@ const modeMap = {
pl: 'perl',
powershell: 'powershell',
properties: 'properties',
ocaml: 'mllike',
ocaml: 'text/x-ocaml',
pascal: 'text/x-pascal',
pas: 'text/x-pascal',
php: (content) => {
@ -88,6 +90,8 @@ const modeMap = {
stext: 'text/x-stex',
bash: 'shell',
toml: 'toml',
ts: 'text/typescript',
typescript: 'text/typescript',
sql: 'text/x-sql',
vbs: 'vbscript',
vbscript: 'vbscript',