mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-08 18:10:08 +00:00
Added MATLAB/Octave code highlighting support
This commit is contained in:
parent
af11e7dd54
commit
391fb2cc62
2 changed files with 5 additions and 2 deletions
resources
|
@ -15,6 +15,7 @@ import 'codemirror/mode/lua/lua';
|
||||||
import 'codemirror/mode/markdown/markdown';
|
import 'codemirror/mode/markdown/markdown';
|
||||||
import 'codemirror/mode/mllike/mllike';
|
import 'codemirror/mode/mllike/mllike';
|
||||||
import 'codemirror/mode/nginx/nginx';
|
import 'codemirror/mode/nginx/nginx';
|
||||||
|
import 'codemirror/mode/octave/octave';
|
||||||
import 'codemirror/mode/perl/perl';
|
import 'codemirror/mode/perl/perl';
|
||||||
import 'codemirror/mode/pascal/pascal';
|
import 'codemirror/mode/pascal/pascal';
|
||||||
import 'codemirror/mode/php/php';
|
import 'codemirror/mode/php/php';
|
||||||
|
@ -65,11 +66,13 @@ const modeMap = {
|
||||||
julia: 'text/x-julia',
|
julia: 'text/x-julia',
|
||||||
latex: 'text/x-stex',
|
latex: 'text/x-stex',
|
||||||
lua: 'lua',
|
lua: 'lua',
|
||||||
|
matlab: 'text/x-octave',
|
||||||
md: 'markdown',
|
md: 'markdown',
|
||||||
mdown: 'markdown',
|
mdown: 'markdown',
|
||||||
markdown: 'markdown',
|
markdown: 'markdown',
|
||||||
ml: 'mllike',
|
ml: 'mllike',
|
||||||
nginx: 'nginx',
|
nginx: 'nginx',
|
||||||
|
octave: 'text/x-octave',
|
||||||
perl: 'perl',
|
perl: 'perl',
|
||||||
pl: 'perl',
|
pl: 'perl',
|
||||||
powershell: 'powershell',
|
powershell: 'powershell',
|
||||||
|
|
|
@ -24,8 +24,8 @@
|
||||||
@php
|
@php
|
||||||
$languages = [
|
$languages = [
|
||||||
'Bash', 'CSS', 'C', 'C++', 'C#', 'Diff', 'Fortran', 'F#', 'Go', 'Haskell', 'HTML', 'INI',
|
'Bash', 'CSS', 'C', 'C++', 'C#', 'Diff', 'Fortran', 'F#', 'Go', 'Haskell', 'HTML', 'INI',
|
||||||
'Java', 'JavaScript', 'JSON', 'Julia', 'Kotlin', 'LaTeX', 'Lua', 'MarkDown', 'Nginx', 'OCaml',
|
'Java', 'JavaScript', 'JSON', 'Julia', 'Kotlin', 'LaTeX', 'Lua', 'MarkDown', 'MATLAB', 'Nginx', 'OCaml',
|
||||||
'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',
|
||||||
];
|
];
|
||||||
@endphp
|
@endphp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue