WikidPad: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (7個修訂) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 62: | Line 62: | ||
* Numeric bullet '#' & table syntax were not work. | * Numeric bullet '#' & table syntax were not work. | ||
* Single bracket '[Page name]' will generate a wiki link. | * Single bracket '[Page name]' will generate a wiki link. | ||
* internal table syntax conflict! via [http://blog.pcbeta.com/html/74/t-379074.html wikidPad 用WIKI的方式来做笔记] ( | * internal table syntax conflict! via [http://blog.pcbeta.com/html/74/t-379074.html wikidPad 用WIKI的方式来做笔记] (2008) ''unverified'' | ||
== installation == | == installation == | ||
Latest revision as of 14:23, 21 June 2009
WikidPad - wiki notebook/outliner for windows (Wiki, forum)
| WikidPad | v.1.9beta13 |
modify the default WikidPad syntax to mediawiki compatible syntax[edit]
- 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
#外站連結: 原語法為[url | title]修改為[url title]
#TitleWikiWordDelimiterPAT = ur"\|"
TitleWikiWordDelimiterPAT = ur"\s"
#basic formatting
#黑體: 原語法*bold* 修改為'''bold'''
#BoldRE = re.compile(ur"\*(?=\S)(?P<boldContent>" + PlainCharacterPAT +
BoldRE = re.compile(ur"\'\'\'(?=\S)(?P<boldContent>" + PlainCharacterPAT +
ur"+?)\'\'\'",
re.DOTALL | re.UNICODE | re.MULTILINE)
#斜體: 原語法 _italic_ 修改為''italic''
#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 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>" +
PlainCharacterPAT + ur"+?)\=\=\=\=\n",
re.DOTALL | re.UNICODE | re.MULTILINE)
#標題3: 原語法 +++ Heading3 修改為 === Heading3 ===
#Heading3RE = re.compile(u"^\\+\\+\\+(?!\\+) ?(?P<h3Content>" +
Heading3RE = re.compile(u"^[ ]*===([^=]) ?(?P<h3Content>" +
PlainCharacterPAT + ur"+?)\=\=\=\n",
re.DOTALL | re.UNICODE | re.MULTILINE)
#標題2: 原語法 ++ Heading2 修改為 == Heading2 ==
#Heading2RE = re.compile(u"^\\+\\+(?!\\+) ?(?P<h2Content>" +
Heading2RE = re.compile(u"^[ ]*==([^=]) ?(?P<h2Content>" +
PlainCharacterPAT + ur"+?)\=\=\n",
re.DOTALL | re.UNICODE | re.MULTILINE)
#標題1: 原語法 + Heading1 修改為 = Heading1 =
#Heading1RE = re.compile(u"^\\+(?!\\+) ?(?P<h1Content>" +
Heading1RE = re.compile(u"^[ ]*=([^=])(?P<h1Content>" +
PlainCharacterPAT + ur"+?)\=\n",
re.DOTALL | re.UNICODE | re.MULTILINE)
notes[edit]
- Numeric bullet '#' & table syntax were not work.
- Single bracket '[Page name]' will generate a wiki link.
- internal table syntax conflict! via wikidPad 用WIKI的方式来做笔记 (2008) unverified
installation[edit]
- The WikidPad installer could extracted as portable software (ex: executed at USB) by Universal Extractor v1.5.