From 6d18d6092104df67f57a447adc99f5bee49e5b8e Mon Sep 17 00:00:00 2001 From: Adam Davis Date: Thu, 16 Aug 2012 23:20:23 +0100 Subject: [PATCH] Added bracket matching for code cells --- IPython/frontend/html/notebook/static/js/codecell.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IPython/frontend/html/notebook/static/js/codecell.js b/IPython/frontend/html/notebook/static/js/codecell.js index d2ed5a417..7f39ecd1d 100644 --- a/IPython/frontend/html/notebook/static/js/codecell.js +++ b/IPython/frontend/html/notebook/static/js/codecell.js @@ -42,7 +42,8 @@ var IPython = (function (IPython) { theme: 'ipython', readOnly: this.read_only, extraKeys: {"Tab": "indentMore","Shift-Tab" : "indentLess",'Backspace':"delSpaceToPrevTabStop"}, - onKeyEvent: $.proxy(this.handle_codemirror_keyevent,this) + onKeyEvent: $.proxy(this.handle_codemirror_keyevent,this), + matchBrackets: true }); input.append(input_area); var output = $('
');