Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

msabramo
Copy link

@msabramo msabramo commented May 6, 2012

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

@dreid
Copy link

dreid commented Jul 9, 2012

+1

@tnm
Copy link
Contributor

tnm commented Jul 20, 2012

We've added support for code highlighting in reSt, demonstrated here http://cl.ly/ICei

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants