Code

Raw reStructuredText:

.. code:: python

  def my_function():
      "just a test"
      print 8/2

Typical result:

def my_function():
    "just a test"
    print 8/2