<div dir="ltr"><div>e.g. </div><div><br></div><div>```python</div><div>daveshouse = '10 Downing Street'</div><div> def get_dave_arrested(daveshouse):</div><div>   import drugs</div><div>   print 'Get your stash at %s' davesshouse</div>

<div>   drugs.stash_at(daveshouse)</div><div>```</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 14 March 2014 16:14, Raymond Yee <span dir="ltr"><<a href="mailto:raymond.yee@gmail.com" target="_blank">raymond.yee@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there any easy way to get syntax highlighting for code blocks in<br>
IPython notebook markdown cells?  (I'm writing a midterm in the notebook<br>
and would like to write code in code cells and then move code into<br>
markdown cells but retain syntax highlighting.)<br>
<br>
Thanks,<br>
-Raymond<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><p><span style="font-size:10pt;color:rgb(127,127,127)">Mr. John Griffiths, MSc</span></p><p><span style="color:rgb(127,127,127);font-size:10pt">PhD Candidate</span></p>

<p><span style="font-size:10pt;color:rgb(127,127,127)">Centre for Speech, Language, and the Brain<u></u><u></u></span></p><p><span style="font-size:10pt;color:rgb(127,127,127)">Department of Experimental Psychology</span></p>

<p><span style="font-size:10pt;color:rgb(127,127,127)">University of Cambridge, UK</span></p>
</div>