X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/4a872012c5568c59aec7dc9825bee28902ce3431..refs/pull/1633/head:/resources/assets/js/services/code.js diff --git a/resources/assets/js/services/code.js b/resources/assets/js/services/code.js index 636b84133..1e0e48289 100644 --- a/resources/assets/js/services/code.js +++ b/resources/assets/js/services/code.js @@ -8,12 +8,17 @@ import 'codemirror/mode/diff/diff'; import 'codemirror/mode/go/go'; import 'codemirror/mode/htmlmixed/htmlmixed'; import 'codemirror/mode/javascript/javascript'; +import 'codemirror/mode/julia/julia'; +import 'codemirror/mode/lua/lua'; +import 'codemirror/mode/haskell/haskell'; import 'codemirror/mode/markdown/markdown'; +import 'codemirror/mode/mllike/mllike'; import 'codemirror/mode/nginx/nginx'; import 'codemirror/mode/php/php'; import 'codemirror/mode/powershell/powershell'; import 'codemirror/mode/python/python'; import 'codemirror/mode/ruby/ruby'; +import 'codemirror/mode/rust/rust'; import 'codemirror/mode/shell/shell'; import 'codemirror/mode/sql/sql'; import 'codemirror/mode/toml/toml'; @@ -34,25 +39,34 @@ const modeMap = { csharp: 'text/x-csharp', diff: 'diff', go: 'go', + haskell: 'haskell', + hs: 'haskell', html: 'htmlmixed', javascript: 'javascript', json: {name: 'javascript', json: true}, js: 'javascript', - php: 'php', + jl: 'julia', + julia: 'julia', + lua: 'lua', md: 'markdown', mdown: 'markdown', markdown: 'markdown', + ml: 'mllike', nginx: 'nginx', powershell: 'powershell', + ocaml: 'mllike', + php: 'php', py: 'python', python: 'python', ruby: 'ruby', + rust: 'rust', rb: 'ruby', + rs: 'rust', shell: 'shell', sh: 'shell', bash: 'shell', toml: 'toml', - sql: 'sql', + sql: 'text/x-sql', xml: 'xml', yaml: 'yaml', yml: 'yaml', @@ -263,4 +277,4 @@ export default { setContent: setContent, markdownEditor: markdownEditor, getMetaKey: getMetaKey, -}; \ No newline at end of file +};