WikidPad: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 38: | Line 38: | ||
re.DOTALL | re.UNICODE | re.MULTILINE) | re.DOTALL | re.UNICODE | re.MULTILINE) | ||
</pre> | </pre> | ||
== notes == | |||
* The WikidPad installer could extracted as portable software (ex: executed at USB) by [http://legroom.net/software/uniextract Universal Extractor] v1.5. | |||
[[Category:incomplete]] [[Category:Software]] [[Category:Wiki]] | [[Category:incomplete]] [[Category:Software]] [[Category:Wiki]] | ||
Revision as of 08:08, 17 December 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)
notes
- The WikidPad installer could extracted as portable software (ex: executed at USB) by Universal Extractor v1.5.