I have developed a revision of the MovableType plugin QuickCcode, named KwickCode, to suit the needs of our blog. The syntax should be familiar to anyone used to posting on web bbses. It comes in two flavors, one for posts and a restricted one for comments.
KwickCode for Comments
KwickCode recognizes separate paragraphs as blocks of texts separate by two newlines (enters/returns). It will auto-link any urls or email address that it finds. It also auto-discovers acronyms, preserves double spaces (for sentence separation), and uses SmartyPants for typographic punctuation. KwickCode uses tags designated by square brackets to markup and beautify the text.
The following tags are available in comments.
[b]text[/b] — Embolden “text.”
[i]text[/i] — Italcize “text.”
[u]text[/u] — Undlerline “text.”
[s]text[/s] — Strikethrough “text.”
[sub]text[/sub] — Subscript “text.”
[sup]text[/sup] — Superscript “text.”
[url]address[/url] — Link “address.”
[url=address]text[/url] — Link “text” to “address.”
[email]address[/email] — Link email “address” with spambot protection.
[email=address]text[/email] — Link “text” to email “address” with spambot protection.
[hr] — Insert horizontal rule.
[hr=width] — Insert horizontal rule with specified width (length or percentage).
[h]text[/h] — Insert “text” as a header.
[quote]text[/quote] — Quote “text.”
[quote=author]text[/quote] — Quote “text” from “author.”
[ref]text[/ref] — Use in quotes to specify “text” as a reference.
[code]text[/code] — Treat “text” as programming code and preserve space.
[list]list[/list] — Create bulleted list. Lists do not nest.
[list=style]list[/list] — Create ordered list with specified style:
1: 1,2,3,…
A: A,B,C,…
a: a,b,c,…
I: I,II,III,…
i: i,ii,iii,…
[refs]list[/refs] — Create list of references.
[*]text — Create “text” as list item. Stops at next [*], [/list], or [/refs].
KwickCode for Posts
In addition to the tags available for comments, the following tags are available to blog authors.
[font=font]text[/font] — Display “text” using “font.”
[color=font]text[/color] — Display “text” using “color.”
[img]address[/img] — Insert image, specified by “address.”
[img=l]address[/img] — Insert image, specified by “address.” Align to the left.
[img=r]address[/img] — Insert image, specified by “address.” Align to the right.
[eqn]equation[/eqn] — Insert LaTeX equation into the post. Uses my Tex2Png MT plugin.
[html]code[/html] — Pass html markup, “code,” directly to the post bypassing Kwickcode’s processing.
3 Comments
DS · 26 April 2004
Many thanks
~DS~
Moron · 30 April 2004
Anton Mates · 28 June 2004
And here I am trying to type in HTML like a chump. Next time, I promise.