0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-04-23 04:10:22 +00:00

Added MATLAB/Octave code highlighting support

This commit is contained in:
Dan Brown 2022-09-27 18:52:21 +01:00
parent af11e7dd54
commit 391fb2cc62
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
2 changed files with 5 additions and 2 deletions
resources

View file

@ -15,6 +15,7 @@ import 'codemirror/mode/lua/lua';
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';
@ -65,11 +66,13 @@ const modeMap = {
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',

View file

@ -24,8 +24,8 @@
@php
$languages = [
'Bash', 'CSS', 'C', 'C++', 'C#', 'Diff', 'Fortran', 'F#', 'Go', 'Haskell', 'HTML', 'INI',
'Java', 'JavaScript', 'JSON', 'Julia', 'Kotlin', 'LaTeX', 'Lua', 'MarkDown', 'Nginx', 'OCaml',
'Pascal', 'Perl', 'PHP', 'Powershell', 'Python', 'Ruby', 'Rust', 'Shell', 'SQL', 'TypeScript',
'Java', 'JavaScript', 'JSON', 'Julia', 'Kotlin', 'LaTeX', 'Lua', 'MarkDown', 'MATLAB', 'Nginx', 'OCaml',
'Octave', 'Pascal', 'Perl', 'PHP', 'Powershell', 'Python', 'Ruby', 'Rust', 'Shell', 'SQL', 'TypeScript',
'VBScript', 'VB.NET', 'XML', 'YAML',
];
@endphp