New Cows

Thoughts, ideas and moohoo

ReStructuredText

written by jw, on 5/10/09 12:11 AM.

I'm used to type in ReStructured Text. So hacked up a Zine plugin parsing "ReST", including basic support for sourcecode:: python blocks that get syntax hilited.

Here's a demo:

class MyClass(object):
    """My cool class.

    Kewl, ain't?
    """

    def __init__(self):
        self.foo = 'foo'
        self.bar = 'bar'
<root>
  <child_1>with text node</child_1>
  <child_2 with_an_attribute="value">
    and more text
  </child_2>
</root>

The plugin needs a bit of pollishing…

Leave a Reply