Skip to content

Commit 8bc6e75

Browse files
committed
Code Blocks: Added SAS and R language options
For #5206
1 parent f583354 commit 8bc6e75

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

resources/js/code/languages.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,12 @@ const modeMap = {
7171
ocaml: () => legacyLoad('oCaml'),
7272
py: () => legacyLoad('python'),
7373
python: () => legacyLoad('python'),
74+
r: () => legacyLoad('r'),
7475
rb: () => legacyLoad('ruby'),
7576
rs: () => legacyLoad('rust'),
7677
ruby: () => legacyLoad('ruby'),
7778
rust: () => legacyLoad('rust'),
79+
sas: () => legacyLoad('sas'),
7880
scala: () => legacyLoad('scala'),
7981
scheme: () => legacyLoad('scheme'),
8082
shell: () => legacyLoad('shell'),

resources/js/code/legacy-modes.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ export {pascal} from '@codemirror/legacy-modes/mode/pascal';
1616
export {powerShell} from '@codemirror/legacy-modes/mode/powershell';
1717
export {properties} from '@codemirror/legacy-modes/mode/properties';
1818
export {python} from '@codemirror/legacy-modes/mode/python';
19+
export {r} from '@codemirror/legacy-modes/mode/r';
1920
export {ruby} from '@codemirror/legacy-modes/mode/ruby';
2021
export {rust} from '@codemirror/legacy-modes/mode/rust';
22+
export {sas} from '@codemirror/legacy-modes/mode/sas';
2123
export {scheme} from '@codemirror/legacy-modes/mode/scheme';
2224
export {shell} from '@codemirror/legacy-modes/mode/shell';
2325
export {

resources/views/pages/parts/code-editor.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class="popup-background code-editor">
2626
'Bash', 'CSS', 'C', 'C++', 'C#', 'Clojure', 'Dart', 'Diff', 'Fortran', 'F#', 'Go', 'Haskell', 'HTML', 'INI',
2727
'Java', 'JavaScript', 'JSON', 'Julia', 'Kotlin', 'LaTeX', 'Lua', 'MarkDown', 'MATLAB', 'MSSQL', 'MySQL',
2828
'Nginx', 'OCaml', 'Octave', 'Pascal', 'Perl', 'PHP', 'PL/SQL', 'PostgreSQL', 'Powershell', 'Python',
29-
'Ruby', 'Rust', 'Scala', 'Scheme', 'Shell', 'Smarty', 'SQL', 'SQLite', 'Swift',
29+
'R', 'Ruby', 'Rust', 'SAS', 'Scala', 'Scheme', 'Shell', 'Smarty', 'SQL', 'SQLite', 'Swift',
3030
'Twig', 'TypeScript', 'VBScript', 'VB.NET', 'XML', 'YAML',
3131
];
3232
@endphp

0 commit comments

Comments
 (0)