I was using this directive but the html generated simply omitted my code. For example, if I use:
.. code:: python
def my_function():
"just a test"
print 8/2
The html generated just doesn't contain this block of code whatsoever.
I have Pygments installed on my machine. Also, I'm using Pandoc to generate the html file.
Any idea what I'm doing wrong?