Commit 3f65a095 by Victor Shnayder

Merge pull request #820 from MITx/ned/spaces_in_codemirror

Now when you hit the TAB key in codemirror, it will insert 4 spaces.
parents 88d00244 01d0741a
...@@ -42,7 +42,12 @@ ...@@ -42,7 +42,12 @@
lineWrapping: true, lineWrapping: true,
indentUnit: "${tabsize}", indentUnit: "${tabsize}",
tabSize: "${tabsize}", tabSize: "${tabsize}",
indentWithTabs: true, indentWithTabs: false,
extraKeys: {
"Tab": function(cm) {
cm.replaceSelection("${' '*tabsize}", "end");
}
},
smartIndent: false smartIndent: false
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment