More WordPress Pimping

Note: this is post didn't make it through the markdown conversion very well. I'm still keeping the explanations, but the examples had to be removed.

PHP and CSS and all that funky web design stuff are funky, because they are so easy to use and you quickly get results. I like it.

I've decided to release my first plugin into the world (it's big hack, but it has turned out to be very useful on my other blog http://info1.blackhc.net).

It supports 3 text replacements:

Xkcd-style Tooltips as Replacement for Footnotes

Example:

[[:This is a default footnote. Hover over it to display it.]]

You can use a different marker, too: Example:

[[:My Footnote#This is a default footnote. Hover over it to display it.]]

Linking to Wikipedia

Example:

[[wikipedia:Pie]]

The link text can be changed, too, of course. Example (you can use : as seperator, too):

[[wikipedia:pi#Fake Pie]]

Expandable Text

Example:

[[expandable#Expandable Text...]]

The link text can be changed, too:

[[expandable#Click me! Click me! Pleeease!#Yay!]]

And we can nest it and it works with other tags. Example:

[[expandable:#Expandable Text...

[[expandable:Click me! Click me! Pleeease!#Yay!]]

[sourcecode lang="java"]<br />
// some Java code<br />
[/sourcecode]

]]

We can also use a Heredoc-like mode: Example:

[[expandable_ex:EOD#Heredoc-like Expandable#[[[[[[[]][[EOD]]

Escaping [[ and ]]

Example:

Escaping [[escape_left]] and [[escape_right]]