Add support for org-mode in th code app

This commit is contained in:
yflory
2018-01-18 15:04:06 +01:00
parent 6a906e3770
commit bc9a88fbe9
5 changed files with 297 additions and 139 deletions

View File

@@ -146,6 +146,7 @@ define([
var setMode = exp.setMode = function (mode, cb) {
exp.highlightMode = mode;
if (mode === 'markdown') { mode = 'gfm'; }
if (mode !== "text") {
CMeditor.autoLoadMode(editor, mode);
}