From 05852a70a969d884bdde7dab19e7bc32dc4f8fa8 2013-09-12 12:28:45 From: Matthias BUSSONNIER Date: 2013-09-12 12:28:45 Subject: [PATCH] enable cython highlight in notebook --- diff --git a/IPython/html/static/notebook/js/config.js b/IPython/html/static/notebook/js/config.js index afb0eb7..fc5bc7c 100644 --- a/IPython/html/static/notebook/js/config.js +++ b/IPython/html/static/notebook/js/config.js @@ -50,12 +50,13 @@ var IPython = (function (IPython) { * cell_magic_highlight['javascript'] = {'reg':[/^var/]} */ cell_magic_highlight : { - 'magic_javascript':{'reg':[/^%%javascript/]} - ,'magic_perl' :{'reg':[/^%%perl/]} - ,'magic_ruby' :{'reg':[/^%%ruby/]} - ,'magic_python' :{'reg':[/^%%python3?/]} - ,'magic_shell' :{'reg':[/^%%bash/]} - ,'magic_r' :{'reg':[/^%%R/]} + 'magic_javascript' :{'reg':[/^%%javascript/]} + ,'magic_perl' :{'reg':[/^%%perl/]} + ,'magic_ruby' :{'reg':[/^%%ruby/]} + ,'magic_python' :{'reg':[/^%%python3?/]} + ,'magic_shell' :{'reg':[/^%%bash/]} + ,'magic_r' :{'reg':[/^%%R/]} + ,'magic_text/x-cython' :{'reg':[/^%%cython/]} }, /**