import 'codemirror/mode/markdown/markdown';
import 'codemirror/mode/mllike/mllike';
import 'codemirror/mode/nginx/nginx';
+import 'codemirror/mode/octave/octave';
import 'codemirror/mode/perl/perl';
import 'codemirror/mode/pascal/pascal';
import 'codemirror/mode/php/php';
// Value can be a mode string or a function that will receive the code content & return the mode string.
// The function option is used in the event the exact mode could be dynamic depending on the code.
const modeMap = {
+ bash: 'shell',
css: 'css',
c: 'text/x-csrc',
java: 'text/x-java',
julia: 'text/x-julia',
latex: 'text/x-stex',
lua: 'lua',
+ matlab: 'text/x-octave',
md: 'markdown',
mdown: 'markdown',
markdown: 'markdown',
ml: 'mllike',
nginx: 'nginx',
+ octave: 'text/x-octave',
perl: 'perl',
pl: 'perl',
powershell: 'powershell',
shell: 'shell',
sh: 'shell',
stext: 'text/x-stex',
- bash: 'shell',
toml: 'toml',
ts: 'text/typescript',
typescript: 'text/typescript',