Commit e63ff01e authored by Andrew Gibiansky's avatar Andrew Gibiansky

Move code cell config earlier, closes #257

parent 9864f878
......@@ -22,6 +22,8 @@ $([IPython.events]).on('app_initialized.NotebookApp', function(){
// IPython keycodes.
IPython.keyboard.keycodes.down = 32; // space
IPython.CodeCell.options_default['cm_config']['mode'] = 'haskell';
CodeMirror.requireMode('haskell', function(){
// Create a multiplexing mode that uses Haskell highlighting by default but
// doesn't highlight command-line directives.
......@@ -54,8 +56,6 @@ $([IPython.events]).on('app_initialized.NotebookApp', function(){
require(['/static/custom/conceal/conceal.js']);
});
IPython.CodeCell.options_default['cm_config']['mode'] = 'haskell';
// Prevent the pager from surrounding everything with a <pre>
IPython.Pager.prototype.append_text = function (text) {
this.pager_element.find(".container").append($('<div/>').html(IPython.utils.autoLinkUrls(text)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment