[IPython-dev] How to get syntax highlight code blocks in the markdown cells in an IPython notebook?

John Griffiths j.davidgriffiths at gmail.com
Fri Mar 14 12:34:54 EDT 2014


e.g.

```python
daveshouse = '10 Downing Street'
 def get_dave_arrested(daveshouse):
   import drugs
   print 'Get your stash at %s' davesshouse
   drugs.stash_at(daveshouse)
```



On 14 March 2014 16:14, Raymond Yee <raymond.yee at gmail.com> wrote:

> Is there any easy way to get syntax highlighting for code blocks in
> IPython notebook markdown cells?  (I'm writing a midterm in the notebook
> and would like to write code in code cells and then move code into
> markdown cells but retain syntax highlighting.)
>
> Thanks,
> -Raymond
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>



-- 

Mr. John Griffiths, MSc

PhD Candidate

Centre for Speech, Language, and the Brain

Department of Experimental Psychology

University of Cambridge, UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140314/de9d2ca5/attachment.html>


More information about the IPython-dev mailing list