Skip to content

Instantly share code, notes, and snippets.

@svx
Created November 6, 2014 13:27
Show Gist options
  • Save svx/885f2d870ed6aab1b9cc to your computer and use it in GitHub Desktop.
Save svx/885f2d870ed6aab1b9cc to your computer and use it in GitHub Desktop.
sublime-builder for RST
About
=====
This is a custom sublime-builder for setting up restview [https://pypi.python.org/pypi/restview] as RST viewer.
Dependencies
------------
- restview
Install
-------
sudo pip install restview
Setup
-----
Go to:Tools -> Build System -> New Build System
and add these lines:
{
"cmd": ["restview", "$file"],
}
Save the file.
Usage
=====
Open a *.rst file and click on: Ctrl+B, now a brower will open with your *.rst file formated as html.
@jensens
Copy link

jensens commented Nov 6, 2014

Great! To automatic build *.rst files this way i configured it with a selector::

{
    "cmd": ["restview", "$file"],
    "selector": "text.restructuredtext",
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment