Are there any libraries that will allow me to display code in
"""A simple example class"""
i = 12345
return 'hello world'
<pre class="brush: python"> # python code here </pre>
There's also highlight.js which has the option of automatically detecting the syntax and highlighting it appropriately; however, you would need to use both
<pre><code> tags to wrap your code.