From 5f48dea749dde939a2f9f169991fcd872307c9e4 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Tue, 7 Apr 2015 15:32:26 -0700 Subject: [PATCH] set global CM Mode --- html/kernel.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/html/kernel.js b/html/kernel.js index 20e30981..fa55a1ca 100644 --- a/html/kernel.js +++ b/html/kernel.js @@ -10,7 +10,7 @@ define(['require', var onload = function(){ console.log('Kernel haskell kernel.js is loading.'); - // add here logic that shoudl be run once per **page load** + // add here logic that should be run once per **page load** // like adding specific UI, or changing the default value // of codecell highlight. @@ -51,6 +51,12 @@ define(['require', } } }); + if(IPython.notebook.set_codemirror_mode){ + // this first one will not be necessary in the future + // neither should the loop on all cells above + IPython.notebook.set_codemirror_mode('null') + IPython.notebook.set_codemirror_mode('ihaskell') + } // Prevent the pager from surrounding everything with a
                 IPython.Pager.prototype.append_text = function (text) {