Add some code blocks (new feature in docutils 0.9) to test syntax highlighting #114

wants to merge 1 commit into from

3 participants


The recently released docutils 0.9 now supports a "code" directive, as described here. If you guys upgrade your docutils to 0.9 and make sure that you have Pygments installed, then you will get this feature for free and that would be awesome to have syntax highlighting in RST documentation.

This pull request adds sample code blocks to the RST files in your tests.

.. code:: python

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


GitHub member

We've added support for code highlighting in reSt, demonstrated here

@tnm tnm closed this Jul 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment