mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-18 02:22:39 +00:00
parent
d2260b234c
commit
2fa5c2581c
2 changed files with 5 additions and 3 deletions
resources
|
@ -28,6 +28,7 @@ import 'codemirror/mode/rust/rust';
|
||||||
import 'codemirror/mode/shell/shell';
|
import 'codemirror/mode/shell/shell';
|
||||||
import 'codemirror/mode/sql/sql';
|
import 'codemirror/mode/sql/sql';
|
||||||
import 'codemirror/mode/stex/stex';
|
import 'codemirror/mode/stex/stex';
|
||||||
|
import 'codemirror/mode/swift/swift';
|
||||||
import 'codemirror/mode/toml/toml';
|
import 'codemirror/mode/toml/toml';
|
||||||
import 'codemirror/mode/vb/vb';
|
import 'codemirror/mode/vb/vb';
|
||||||
import 'codemirror/mode/vbscript/vbscript';
|
import 'codemirror/mode/vbscript/vbscript';
|
||||||
|
@ -93,11 +94,12 @@ const modeMap = {
|
||||||
rs: 'rust',
|
rs: 'rust',
|
||||||
shell: 'shell',
|
shell: 'shell',
|
||||||
sh: 'shell',
|
sh: 'shell',
|
||||||
|
sql: 'text/x-sql',
|
||||||
stext: 'text/x-stex',
|
stext: 'text/x-stex',
|
||||||
|
swift: 'text/x-swift',
|
||||||
toml: 'toml',
|
toml: 'toml',
|
||||||
ts: 'text/typescript',
|
ts: 'text/typescript',
|
||||||
typescript: 'text/typescript',
|
typescript: 'text/typescript',
|
||||||
sql: 'text/x-sql',
|
|
||||||
vbs: 'vbscript',
|
vbs: 'vbscript',
|
||||||
vbscript: 'vbscript',
|
vbscript: 'vbscript',
|
||||||
'vb.net': 'text/x-vb',
|
'vb.net': 'text/x-vb',
|
||||||
|
|
|
@ -25,8 +25,8 @@
|
||||||
$languages = [
|
$languages = [
|
||||||
'Bash', 'CSS', 'C', 'C++', 'C#', 'Dart', 'Diff', 'Fortran', 'F#', 'Go', 'Haskell', 'HTML', 'INI',
|
'Bash', 'CSS', 'C', 'C++', 'C#', 'Dart', 'Diff', 'Fortran', 'F#', 'Go', 'Haskell', 'HTML', 'INI',
|
||||||
'Java', 'JavaScript', 'JSON', 'Julia', 'Kotlin', 'LaTeX', 'Lua', 'MarkDown', 'MATLAB', 'Nginx', 'OCaml',
|
'Java', 'JavaScript', 'JSON', 'Julia', 'Kotlin', 'LaTeX', 'Lua', 'MarkDown', 'MATLAB', 'Nginx', 'OCaml',
|
||||||
'Octave', 'Pascal', 'Perl', 'PHP', 'Powershell', 'Python', 'Ruby', 'Rust', 'Shell', 'SQL', 'TypeScript',
|
'Octave', 'Pascal', 'Perl', 'PHP', 'Powershell', 'Python', 'Ruby', 'Rust', 'Shell', 'SQL', 'Swift',
|
||||||
'VBScript', 'VB.NET', 'XML', 'YAML',
|
'TypeScript', 'VBScript', 'VB.NET', 'XML', 'YAML',
|
||||||
];
|
];
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue