Skip to content

Commit

Permalink
Merge pull request #905 from jcb91/codemirror_mode_extensions
Browse files Browse the repository at this point in the history
[codemirror_mode_extensions] add new nbextension
  • Loading branch information
jcb91 authored Mar 13, 2017
2 parents 9c1e5c9 + 332e178 commit 459c3bc
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 459c3bc

Please sign in to comment.