diff --git a/resources/js/code/languages.js b/resources/js/code/languages.js index ef317334c..da9631a13 100644 --- a/resources/js/code/languages.js +++ b/resources/js/code/languages.js @@ -71,10 +71,12 @@ const modeMap = { ocaml: () => legacyLoad('oCaml'), py: () => legacyLoad('python'), python: () => legacyLoad('python'), + r: () => legacyLoad('r'), rb: () => legacyLoad('ruby'), rs: () => legacyLoad('rust'), ruby: () => legacyLoad('ruby'), rust: () => legacyLoad('rust'), + sas: () => legacyLoad('sas'), scala: () => legacyLoad('scala'), scheme: () => legacyLoad('scheme'), shell: () => legacyLoad('shell'), diff --git a/resources/js/code/legacy-modes.mjs b/resources/js/code/legacy-modes.mjs index 55a804bf9..7b70bec10 100644 --- a/resources/js/code/legacy-modes.mjs +++ b/resources/js/code/legacy-modes.mjs @@ -16,8 +16,10 @@ export {pascal} from '@codemirror/legacy-modes/mode/pascal'; export {powerShell} from '@codemirror/legacy-modes/mode/powershell'; export {properties} from '@codemirror/legacy-modes/mode/properties'; export {python} from '@codemirror/legacy-modes/mode/python'; +export {r} from '@codemirror/legacy-modes/mode/r'; export {ruby} from '@codemirror/legacy-modes/mode/ruby'; export {rust} from '@codemirror/legacy-modes/mode/rust'; +export {sas} from '@codemirror/legacy-modes/mode/sas'; export {scheme} from '@codemirror/legacy-modes/mode/scheme'; export {shell} from '@codemirror/legacy-modes/mode/shell'; export { diff --git a/resources/views/pages/parts/code-editor.blade.php b/resources/views/pages/parts/code-editor.blade.php index 688fe67ef..fc8852a32 100644 --- a/resources/views/pages/parts/code-editor.blade.php +++ b/resources/views/pages/parts/code-editor.blade.php @@ -26,7 +26,7 @@ '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', 'Scala', 'Scheme', 'Shell', 'Smarty', 'SQL', 'SQLite', 'Swift', + 'R', 'Ruby', 'Rust', 'SAS', 'Scala', 'Scheme', 'Shell', 'Smarty', 'SQL', 'SQLite', 'Swift', 'Twig', 'TypeScript', 'VBScript', 'VB.NET', 'XML', 'YAML', ]; @endphp