Added diff and sh code types

Verified changes to ensure fixes #296.
This commit is contained in:
Dan Brown 2017-07-01 16:10:52 +01:00
parent de6d8a811c
commit d5d83da766
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -1,5 +1,6 @@
require('codemirror/mode/css/css');
require('codemirror/mode/clike/clike');
require('codemirror/mode/diff/diff');
require('codemirror/mode/go/go');
require('codemirror/mode/htmlmixed/htmlmixed');
require('codemirror/mode/javascript/javascript');
@ -26,6 +27,7 @@ const modeMap = {
'c++': 'clike',
'c#': 'clike',
csharp: 'clike',
diff: 'diff',
go: 'go',
html: 'htmlmixed',
javascript: 'javascript',
@ -42,6 +44,7 @@ const modeMap = {
ruby: 'ruby',
rb: 'ruby',
shell: 'shell',
sh: 'shell',
bash: 'shell',
toml: 'toml',
sql: 'sql',