summaryrefslogtreecommitdiff
path: root/js/codeq/python.js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-09-29 14:15:28 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-09-29 14:18:34 +0200
commitb2983855ea01fd04a8ba53099d2d5ee7ebed31f9 (patch)
treec516a2d30ebc954d9118922d5e7155016d32d06b /js/codeq/python.js
parent22cb497f9ed19548e30a4c86dd99aaa91fd4b344 (diff)
Add a statusbar to the editor widget
Diffstat (limited to 'js/codeq/python.js')
-rw-r--r--js/codeq/python.js14
1 files changed, 2 insertions, 12 deletions
diff --git a/js/codeq/python.js b/js/codeq/python.js
index 4724982..e20fe06 100644
--- a/js/codeq/python.js
+++ b/js/codeq/python.js
@@ -217,19 +217,9 @@
jqEditor = jqCode.find('.code_editor'),
jqTerminal = jqConsole.find('.console'),
jqHints = jqInfo.find('.hints'),
- editor = CodeMirror(jqEditor[0], {
- cursorHeight: 0.85,
- lineNumbers: true,
- matchBrackets: true,
+ editor = codeq.makeEditor(jqEditor[0], {
mode: 'python',
- indentUnit: 4,
- extraKeys: {
- // replace tabs with spaces
- Tab: function (cm) {
- var spaces = Array(cm.getOption("indentUnit") + 1).join(" ");
- cm.replaceSelection(spaces);
- }
- }
+ indentUnit: 4
}),
activityHandler = makeActivityHandler(editor, problemDef.id),
terminal = makePythonTerminalHandler(jqTerminal, editor, problemDef.id, activityHandler),