Diff Parser

Description

The Diff parser allows you to have diffs rendered nicely inside Moin's code blocks.

Download & Release Notes

Download

Release Version

Moin Version

Release Notes

parser/diff.py

1.0

1.5

ParserMarket/Diff/ReleaseNotes

Installation

For general installation instructions, see ParserMarket/InstallingParsers. You will more then likely want to add some lines of CSS into your stylesheet. Consult the source code for instructions.

Usage

To use this parser, simply put #!diff after the beginning of the code block.

Example

{{{#!diff
diff -r 9f4bdc7ef80d MoinMoin/converter/text_html_text_moin_wiki.py
--- a/MoinMoin/converter/text_html_text_moin_wiki.py    Sun Jan 20 17:57:01 2008 +0100
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py    Sun Jan 20 21:41:41 2008 +0200
@@ -1306,7 +1306,25 @@ def parse(request, text):
         raise ConvertError('ExpatError: %s (see dump in %s)' % (msg, logname))
 
 def convert(request, pagename, text):
-    text = u"<page>%s</page>" % text
+    # Due to expat needing explicitly set namespaces, we set these here to allow pasting 
}}}

This parser is copyrighted by EmilioLopes

License

This parser is released under the terms of the GNU GPL.

Discussion

MoinMoin: ParserMarket/Diff (last edited 2008-01-28 14:39:51 by FedericoLorenzi)