mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Merge pull request #3673 from minrk/cm-comment
enable comment/uncomment selection in notebook Bound to `(cmd|ctrl)-/`
This commit is contained in:
commit
ba24f709cb
@ -85,7 +85,13 @@ var IPython = (function (IPython) {
|
||||
|
||||
CodeCell.options_default = {
|
||||
cm_config : {
|
||||
extraKeys: {"Tab": "indentMore","Shift-Tab" : "indentLess",'Backspace':"delSpaceToPrevTabStop"},
|
||||
extraKeys: {
|
||||
"Tab" : "indentMore",
|
||||
"Shift-Tab" : "indentLess",
|
||||
"Backspace" : "delSpaceToPrevTabStop",
|
||||
"Cmd-/" : "toggleComment",
|
||||
"Ctrl-/" : "toggleComment"
|
||||
},
|
||||
mode: 'ipython',
|
||||
theme: 'ipython',
|
||||
matchBrackets: true
|
||||
|
@ -211,6 +211,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/comment/comment.js") }}" charset="utf-8"></script>
|
||||
<script src="{{ static_url("notebook/js/codemirror-ipython.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>
|
||||
|
Loading…
Reference in New Issue
Block a user