Merge pull request #4985 from damianavila/closebrackets

Enable autoCloseBrackets in CodeMirror by default.
This commit is contained in:
Min RK 2014-02-25 09:04:22 -08:00
commit 0117b587ab
2 changed files with 3 additions and 1 deletions

View File

@ -101,7 +101,8 @@ var IPython = (function (IPython) {
},
mode: 'ipython',
theme: 'ipython',
matchBrackets: true
matchBrackets: true,
autoCloseBrackets: true
}
};

View File

@ -299,6 +299,7 @@ class="notebook_app"
<script src="{{ static_url("components/codemirror/addon/mode/multiplex.js") }}" charset="utf-8"></script>
<script src="{{ static_url("components/codemirror/addon/mode/overlay.js") }}" charset="utf-8"></script>
<script src="{{ static_url("components/codemirror/addon/edit/matchbrackets.js") }}" charset="utf-8"></script>
<script src="{{ static_url("components/codemirror/addon/edit/closebrackets.js") }}" charset="utf-8"></script>
<script src="{{ static_url("components/codemirror/addon/comment/comment.js") }}" charset="utf-8"></script>
<script src="{{ static_url("components/codemirror/mode/htmlmixed/htmlmixed.js") }}" charset="utf-8"></script>
<script src="{{ static_url("components/codemirror/mode/xml/xml.js") }}" charset="utf-8"></script>