Merge pull request #820 from MITx/ned/spaces_in_codemirror

Now when you hit the TAB key in codemirror, it will insert 4 spaces.
This commit is contained in:
Victor Shnayder
2012-10-03 13:24:47 -07:00

View File

@@ -42,7 +42,12 @@
lineWrapping: true,
indentUnit: "${tabsize}",
tabSize: "${tabsize}",
indentWithTabs: true,
indentWithTabs: false,
extraKeys: {
"Tab": function(cm) {
cm.replaceSelection("${' '*tabsize}", "end");
}
},
smartIndent: false
});
});