1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-10-23 18:48:37 +03:00

Code: Added groovy syntax highlighting

For #5822
This commit is contained in:
Dan Brown
2025-10-21 18:34:21 +01:00
parent 2c81447c9e
commit ebf82617b8
3 changed files with 4 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ const modeMap = {
'f#': () => legacyLoad('fSharp'),
fsharp: () => legacyLoad('fSharp'),
go: () => legacyLoad('go'),
groovy: () => legacyLoad('groovy'),
haskell: () => legacyLoad('haskell'),
hs: () => legacyLoad('haskell'),
html: async () => html({selfClosingTags: true}),

View File

@@ -5,6 +5,8 @@ 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';
export {groovy} from '@codemirror/legacy-modes/mode/groovy';
export {haxe} from '@codemirror/legacy-modes/mode/haxe';
export {haskell} from '@codemirror/legacy-modes/mode/haskell';
export {julia} from '@codemirror/legacy-modes/mode/julia';
export {lua} from '@codemirror/legacy-modes/mode/lua';

View File

@@ -23,7 +23,7 @@
<div refs="code-editor@language-options-container" class="lang-options">
@php
$languages = [
'Bash', 'CSS', 'C', 'C++', 'C#', 'Clojure', 'Dart', 'Diff', 'Fortran', 'F#', 'Go', 'Haskell', 'HTML', 'INI',
'Bash', 'CSS', 'C', 'C++', 'C#', 'Clojure', 'Dart', 'Diff', 'Fortran', 'F#', 'Go', 'Groovy', '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',
'R', 'Ruby', 'Rust', 'SAS', 'Scala', 'Scheme', 'Shell', 'Smarty', 'SQL', 'SQLite', 'Swift',