mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-18 02:12:30 +08:00
@ -4,6 +4,7 @@ import Clipboard from "clipboard/dist/clipboard.min";
|
|||||||
// Modes
|
// Modes
|
||||||
import 'codemirror/mode/css/css';
|
import 'codemirror/mode/css/css';
|
||||||
import 'codemirror/mode/clike/clike';
|
import 'codemirror/mode/clike/clike';
|
||||||
|
import 'codemirror/mode/dart/dart';
|
||||||
import 'codemirror/mode/diff/diff';
|
import 'codemirror/mode/diff/diff';
|
||||||
import 'codemirror/mode/fortran/fortran';
|
import 'codemirror/mode/fortran/fortran';
|
||||||
import 'codemirror/mode/go/go';
|
import 'codemirror/mode/go/go';
|
||||||
@ -49,6 +50,7 @@ const modeMap = {
|
|||||||
'c++': 'text/x-c++src',
|
'c++': 'text/x-c++src',
|
||||||
'c#': 'text/x-csharp',
|
'c#': 'text/x-csharp',
|
||||||
csharp: 'text/x-csharp',
|
csharp: 'text/x-csharp',
|
||||||
|
dart: 'application/dart',
|
||||||
diff: 'diff',
|
diff: 'diff',
|
||||||
for: 'fortran',
|
for: 'fortran',
|
||||||
fortran: 'fortran',
|
fortran: 'fortran',
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
<div refs="code-editor@language-options-container" class="lang-options">
|
<div refs="code-editor@language-options-container" class="lang-options">
|
||||||
@php
|
@php
|
||||||
$languages = [
|
$languages = [
|
||||||
'Bash', 'CSS', 'C', 'C++', 'C#', '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', 'TypeScript',
|
||||||
'VBScript', 'VB.NET', 'XML', 'YAML',
|
'VBScript', 'VB.NET', 'XML', 'YAML',
|
||||||
|
Reference in New Issue
Block a user