diff --git a/resources/js/code.mjs b/resources/js/code.mjs index 5881e2512..9ffe76fe6 100644 --- a/resources/js/code.mjs +++ b/resources/js/code.mjs @@ -4,6 +4,7 @@ import Clipboard from "clipboard/dist/clipboard.min"; // Modes import 'codemirror/mode/css/css'; import 'codemirror/mode/clike/clike'; +import 'codemirror/mode/dart/dart'; import 'codemirror/mode/diff/diff'; import 'codemirror/mode/fortran/fortran'; import 'codemirror/mode/go/go'; @@ -49,6 +50,7 @@ const modeMap = { 'c++': 'text/x-c++src', 'c#': 'text/x-csharp', csharp: 'text/x-csharp', + dart: 'application/dart', diff: 'diff', for: 'fortran', fortran: 'fortran', diff --git a/resources/views/pages/parts/code-editor.blade.php b/resources/views/pages/parts/code-editor.blade.php index 770ed4840..a926e5d76 100644 --- a/resources/views/pages/parts/code-editor.blade.php +++ b/resources/views/pages/parts/code-editor.blade.php @@ -23,7 +23,7 @@