WikidPad: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
[http://www.jhorman.org/wikidPad/ WikidPad - wiki notebook/outliner for windows] ([http://wikidpad.python-hosting.com/ Wiki])
[http://www.jhorman.org/wikidPad/ WikidPad - wiki notebook/outliner for windows] ([http://wikidpad.python-hosting.com/ Wiki])


== modify the wiki syntax ==
{{Software version| software=WikidPad | url=http://www.jhorman.org/wikidPad/ |  version=1.9beta1 }}
 
== modify the default wiki syntax to mediawiki syntax (incomplete!) ==
* Copy the C:\Program Files\WikidPad\WikiSyntax.py to C:\Program Files\user_extensions\WikiSyntax.py
* Copy the C:\Program Files\WikidPad\WikiSyntax.py to C:\Program Files\user_extensions\WikiSyntax.py
* modify the code of user_extensions/WikiSyntax.py as follows
* modify the code of user_extensions/WikiSyntax.py as follows

Revision as of 00:26, 12 February 2007

WikidPad - wiki notebook/outliner for windows (Wiki)

WikidPad v.1.9beta1


modify the default wiki syntax to mediawiki syntax (incomplete!)

  • Copy the C:\Program Files\WikidPad\WikiSyntax.py to C:\Program Files\user_extensions\WikiSyntax.py
  • modify the code of user_extensions/WikiSyntax.py as follows

# basic formatting
#BoldRE          = re.compile(ur"\*(?=\S)(?P<boldContent>" + PlainCharacterPAT +
BoldRE          = re.compile(ur"\'\'\'(?=\S)(?P<boldContent>" + PlainCharacterPAT +
        ur"+?)\'\'\'",
        re.DOTALL | re.UNICODE | re.MULTILINE)
#ItalicRE        = re.compile(ur"\b_(?P<italicContent>" + PlainCharacterPAT +
ItalicRE        = re.compile(ur"\'\'(?=\S)(?P<italicContent>" + PlainCharacterPAT +
        ur"+?)\'\'",
        re.DOTALL | re.UNICODE | re.MULTILINE)
HtmlTagRE = re.compile(
        ur"</?[A-Za-z][A-Za-z0-9]*(?:/| [^\n>]*)?>",
        re.DOTALL | re.UNICODE | re.MULTILINE)
# == hedding == <--- note that the space whould insert between = symbol and the hedding		
#Heading4RE      = re.compile(u"^\\+\\+\\+\\+(?!\\+) ?(?P<h4Content>" +
Heading4RE      = re.compile(u"^[ ]*====([^=]) ?(?P<h4Content>" +
        PlainCharacterPAT + ur"+?)\=\=\=\=\n",
        re.DOTALL | re.UNICODE | re.MULTILINE)
#Heading3RE      = re.compile(u"^\\+\\+\\+(?!\\+) ?(?P<h3Content>" +
Heading3RE      = re.compile(u"^[ ]*===([^=]) ?(?P<h3Content>" +
        PlainCharacterPAT + ur"+?)\=\=\=\n",
        re.DOTALL | re.UNICODE | re.MULTILINE)
#Heading2RE      = re.compile(u"^\\+\\+(?!\\+) ?(?P<h2Content>" +
Heading2RE      = re.compile(u"^[ ]*==([^=]) ?(?P<h2Content>" +
        PlainCharacterPAT + ur"+?)\=\=\n",
        re.DOTALL | re.UNICODE | re.MULTILINE)
#Heading1RE      = re.compile(u"^\\+(?!\\+) ?(?P<h1Content>" +
Heading1RE      = re.compile(u"^[ ]*=([^=])(?P<h1Content>" +
        PlainCharacterPAT + ur"+?)\=\n",
        re.DOTALL | re.UNICODE | re.MULTILINE)