Skip to content

Commit

Permalink
[codemirror_mode_extensions] add new nbextension
Browse files Browse the repository at this point in the history
  • Loading branch information
jcb91 committed Mar 1, 2017
1 parent c4956ac commit 332e178
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Type: Jupyter Notebook Extension
Name: CodeMirror mode extensions
Description: |
Extends some CodeMirror modes with extra features. Currently just adds
support for comment/uncomment and folding for octave/MATLAB mode.
Main: main.js
Compatibility: 4.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
define(['codemirror/lib/codemirror'], function (CodeMirror) {
"use strict";
return {
load_ipython_extension : function () {
CodeMirror.extendMode('octave', {
lineComment: '%',
fold: 'indent',
});
}
};
});

0 comments on commit 332e178

Please sign in to comment.