Pycharm and RST

This is how to edit reStrucuturedText (rst) files in Pycharm 4. First install docutils in your Python environment:

pip install docutils

Next, from the Pycharm menu bar select: Run>Edit Configurations. Add a Python docs>Docutils task. Then fill in the form as follows:

Screenshot from 2015-01-22 14:00:32

When you run this, it will convert your file to HTML. Under the View menu there is a menu item to display the HTML in a browser.

Also, rst does not like hard returns. This means that paragraphs have to be a long line. I tried setting up the editor for soft wraps but I found it more difficult to write Python code.

Happy rst-ing.

Advertisements

One thought on “Pycharm and RST

  1. Pingback: Any sensible ReST editor for Pycharm? - PKT

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s