14,954
edits
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]) | ||
{{Software version| software=WikidPad | url=http://www.jhorman.org/wikidPad/ | version=1. | {{Software version| software=WikidPad | url=http://www.jhorman.org/wikidPad/ | version=1.9beta13 }} | ||
== modify the default | == modify the default WikidPad syntax to mediawiki compatible syntax == | ||
* Copy the C:\Program Files\WikidPad\WikiSyntax.py to C:\Program Files\user_extensions\WikiSyntax.py | * Copy the C:\Program Files\WikidPad\extensions\WikiSyntax.py to C:\Program Files\WikidPad\user_extensions\WikiSyntax.py | ||
* modify the code of user_extensions/WikiSyntax.py as follows | * modify the code of user_extensions/WikiSyntax.py as follows | ||
<pre> | <pre> | ||
#外站連結: 原語法為[url | title]修改為[url title] | |||
#TitleWikiWordDelimiterPAT = ur"\|" | |||
TitleWikiWordDelimiterPAT = ur"\s" | |||
# basic formatting | #basic formatting | ||
#黑體: 原語法*bold* 修改為'''bold''' | |||
#BoldRE = re.compile(ur"\*(?=\S)(?P<boldContent>" + PlainCharacterPAT + | #BoldRE = re.compile(ur"\*(?=\S)(?P<boldContent>" + PlainCharacterPAT + | ||
BoldRE = re.compile(ur"\'\'\'(?=\S)(?P<boldContent>" + PlainCharacterPAT + | BoldRE = re.compile(ur"\'\'\'(?=\S)(?P<boldContent>" + PlainCharacterPAT + | ||
ur"+?)\'\'\'", | ur"+?)\'\'\'", | ||
re.DOTALL | re.UNICODE | re.MULTILINE) | re.DOTALL | re.UNICODE | re.MULTILINE) | ||
#斜體: 原語法 _italic_ 修改為''italic'' | |||
#ItalicRE = re.compile(ur"\b_(?P<italicContent>" + PlainCharacterPAT + | #ItalicRE = re.compile(ur"\b_(?P<italicContent>" + PlainCharacterPAT + | ||
ItalicRE = re.compile(ur"\'\'(?=\S)(?P<italicContent>" + PlainCharacterPAT + | ItalicRE = re.compile(ur"\'\'(?=\S)(?P<italicContent>" + PlainCharacterPAT + | ||
| Line 20: | Line 26: | ||
ur"</?[A-Za-z][A-Za-z0-9]*(?:/| [^\n>]*)?>", | ur"</?[A-Za-z][A-Za-z0-9]*(?:/| [^\n>]*)?>", | ||
re.DOTALL | re.UNICODE | re.MULTILINE) | re.DOTALL | re.UNICODE | re.MULTILINE) | ||
# == hedding == <--- note that the space whould insert between = symbol and the hedding | |||
# == hedding == <--- note that the space whould insert between = symbol and the hedding text | |||
#標題5: 原語法 +++++ Heading5 修改為 ===== Heading5 ===== | |||
#Heading5RE = re.compile(ur"^\+{5}(?!\+) ?(?P<h5Content>" + | |||
Heading5RE = re.compile(u"^[ ]*=====([^=]) ?(?P<h5Content>" + | |||
PlainCharacterPAT + ur"+?)\=\=\=\=\=\n", | |||
re.DOTALL | re.UNICODE | re.MULTILINE) | |||
#標題4: 原語法 ++++ Heading4 修改為 ==== Heading4 ==== | |||
#Heading4RE = re.compile(u"^\\+\\+\\+\\+(?!\\+) ?(?P<h4Content>" + | #Heading4RE = re.compile(u"^\\+\\+\\+\\+(?!\\+) ?(?P<h4Content>" + | ||
Heading4RE = re.compile(u"^[ ]*====([^=]) ?(?P<h4Content>" + | Heading4RE = re.compile(u"^[ ]*====([^=]) ?(?P<h4Content>" + | ||
PlainCharacterPAT + ur"+?)\=\=\=\=\n", | PlainCharacterPAT + ur"+?)\=\=\=\=\n", | ||
re.DOTALL | re.UNICODE | re.MULTILINE) | re.DOTALL | re.UNICODE | re.MULTILINE) | ||
#標題3: 原語法 +++ Heading3 修改為 === Heading3 === | |||
#Heading3RE = re.compile(u"^\\+\\+\\+(?!\\+) ?(?P<h3Content>" + | #Heading3RE = re.compile(u"^\\+\\+\\+(?!\\+) ?(?P<h3Content>" + | ||
Heading3RE = re.compile(u"^[ ]*===([^=]) ?(?P<h3Content>" + | Heading3RE = re.compile(u"^[ ]*===([^=]) ?(?P<h3Content>" + | ||
PlainCharacterPAT + ur"+?)\=\=\=\n", | PlainCharacterPAT + ur"+?)\=\=\=\n", | ||
re.DOTALL | re.UNICODE | re.MULTILINE) | re.DOTALL | re.UNICODE | re.MULTILINE) | ||
#標題2: 原語法 ++ Heading2 修改為 == Heading2 == | |||
#Heading2RE = re.compile(u"^\\+\\+(?!\\+) ?(?P<h2Content>" + | #Heading2RE = re.compile(u"^\\+\\+(?!\\+) ?(?P<h2Content>" + | ||
Heading2RE = re.compile(u"^[ ]*==([^=]) ?(?P<h2Content>" + | Heading2RE = re.compile(u"^[ ]*==([^=]) ?(?P<h2Content>" + | ||
PlainCharacterPAT + ur"+?)\=\=\n", | PlainCharacterPAT + ur"+?)\=\=\n", | ||
re.DOTALL | re.UNICODE | re.MULTILINE) | re.DOTALL | re.UNICODE | re.MULTILINE) | ||
#標題1: 原語法 + Heading1 修改為 = Heading1 = | |||
#Heading1RE = re.compile(u"^\\+(?!\\+) ?(?P<h1Content>" + | #Heading1RE = re.compile(u"^\\+(?!\\+) ?(?P<h1Content>" + | ||
Heading1RE = re.compile(u"^[ ]*=([^=])(?P<h1Content>" + | Heading1RE = re.compile(u"^[ ]*=([^=])(?P<h1Content>" + | ||
| Line 40: | Line 60: | ||
== notes == | == notes == | ||
* Numeric Bullet '#' & table were not work. | |||
* Single bracket '[Page name]' will generate a wiki link. | |||
== installation == | |||
* The WikidPad installer could extracted as portable software (ex: executed at USB) by [http://legroom.net/software/uniextract Universal Extractor] v1.5. | * The WikidPad installer could extracted as portable software (ex: executed at USB) by [http://legroom.net/software/uniextract Universal Extractor] v1.5. | ||
[[Category:Software]] [[Category:Wiki]] | |||