Mar 14
WP Chili Released
A couple of days ago I released WP Chili, a simple WordPress plugin that installs Chili into WordPress and let’s you add client-side code highlighting to your posts, with extreme simplicity.
After activating WP Chili, it’s just a matter of wrapping your snippets into code or pre-code elements, with the programming language of the snippet as a class, like in the following example:
<pre><code class="php">
echo "Hello $name";
</code></pre>
When the post reaches your readers, the snippet is unescaped by their browser and highlighted by Chili 1.9 (downloaded from your server). Your readers will see the example rendered as:
echo "Hello $name";

March 19th, 2008 at 14:22:21
I am having some problem with this plugin because the highlighter stops parsing after a blank line
http://cslai.coolsilon.com/2008/03/19/mvc-me-vs-codeigniter/2/
March 20th, 2008 at 00:18:25
I’ve looked at your page and noticed some problems.
Actually all code inside a CODE element with a “php” class is highlighted (a good thing), but outside code is not (a good thing, too).
Any code you want Chili to highlight must go inside a CODE element…
March 20th, 2008 at 06:55:22
somehow i got the problem solved. It seems that WP Chili wasn’t highlighting codes followed by a blank line is because wordpress added a paragraph tag after each blank line. I solved it by adding a at the beginning of each blank line.
Sorry for the double posting