New Cows

Thoughts, ideas and moohoo

Entries tagged “restructuredtext”

ReStructuredText parser plugin

written by jw, on 5/15/09 11:28 AM.

My version of the ReST parser plugin for Zine is here: http://jw.n–tree.net/code/rest_parser

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…