WikidPad

From LemonWiki共筆
Revision as of 08:08, 17 December 2007 by Planetoid (talk | contribs)
Jump to navigation Jump to search

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)

notes

  • The WikidPad installer could extracted as portable software (ex: executed at USB) by Universal Extractor v1.5.