mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-22 14:23:05 +08:00
parent
a46b438a4c
commit
fa6fcc1c1c
|
@ -23,6 +23,8 @@ const modeMap = {
|
|||
css: async () => css(),
|
||||
'c++': () => legacyLoad('cpp'),
|
||||
'c#': () => legacyLoad('csharp'),
|
||||
clj: () => legacyLoad('clojure'),
|
||||
clojure: () => legacyLoad('clojure'),
|
||||
csharp: () => legacyLoad('csharp'),
|
||||
dart: () => legacyLoad('dart'),
|
||||
diff: () => legacyLoad('diff'),
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
export {
|
||||
c, cpp, csharp, java, kotlin, scala, dart,
|
||||
} from '@codemirror/legacy-modes/mode/clike';
|
||||
export {clojure} from '@codemirror/legacy-modes/mode/clojure';
|
||||
export {diff} from '@codemirror/legacy-modes/mode/diff';
|
||||
export {fortran} from '@codemirror/legacy-modes/mode/fortran';
|
||||
export {go} from '@codemirror/legacy-modes/mode/go';
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<div refs="code-editor@language-options-container" class="lang-options">
|
||||
@php
|
||||
$languages = [
|
||||
'Bash', 'CSS', 'C', 'C++', 'C#', 'Dart', 'Diff', 'Fortran', 'F#', 'Go', 'Haskell', 'HTML', 'INI',
|
||||
'Bash', 'CSS', 'C', 'C++', 'C#', 'Clojure', 'Dart', 'Diff', 'Fortran', 'F#', 'Go', 'Haskell', 'HTML', 'INI',
|
||||
'Java', 'JavaScript', 'JSON', 'Julia', 'Kotlin', 'LaTeX', 'Lua', 'MarkDown', 'MATLAB', 'MSSQL', 'MySQL', 'Nginx', 'OCaml',
|
||||
'Octave', 'Pascal', 'Perl', 'PHP', 'PL/SQL', 'PostgreSQL', 'Powershell', 'Python', 'Ruby', 'Rust', 'Scheme', 'Shell', 'Smarty',
|
||||
'SQL', 'SQLite', 'Swift', 'Twig', 'TypeScript', 'VBScript', 'VB.NET', 'XML', 'YAML',
|
||||
|
|
Loading…
Reference in New Issue
Block a user