<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: WordPress: Formating and colouring Code</title>
	<atom:link href="http://blog.nkadesign.com/2006/wordpress-formating-and-colouring-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nkadesign.com/2006/wordpress-formating-and-colouring-code/</link>
	<description>Just another programming weblog</description>
	<pubDate>Thu, 28 Aug 2008 07:47:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Snyke</title>
		<link>http://blog.nkadesign.com/2006/wordpress-formating-and-colouring-code/#comment-310</link>
		<dc:creator>Snyke</dc:creator>
		<pubDate>Fri, 04 Aug 2006 15:30:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=30#comment-310</guid>
		<description>&lt;p&gt;Nice work dude,
I'm planning to add the syntaxhighlighter too, so I can finally stop worrying about my code :P&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nice work dude,
I&#8217;m planning to add the syntaxhighlighter too, so I can finally stop worrying about my code :P</p>]]></content:encoded>
	</item>
	<item>
		<title>By: epiphantastic &#187; Blog Archive &#187; Syntax Highlighting with dp.SyntaxHighlighter</title>
		<link>http://blog.nkadesign.com/2006/wordpress-formating-and-colouring-code/#comment-309</link>
		<dc:creator>epiphantastic &#187; Blog Archive &#187; Syntax Highlighting with dp.SyntaxHighlighter</dc:creator>
		<pubDate>Fri, 04 Aug 2006 14:24:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=30#comment-309</guid>
		<description>&lt;p&gt;[...] A fellow blogger has just posted a link to a great library for syntax highlighting. Having just posted a long tutorial with many bits of code, I found it to be a pain, so this will be a welcome addition to my toolkit. However, I ran into a few problems implementing it because WordPress inserts a bunch of &#60;br /&#62; tags whenever there are line breaks. Fortunately, Renaud Bompuis has provided us with a solution in the form of a WordPress plugin. After installing it, everything worked perfectly! [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] A fellow blogger has just posted a link to a great library for syntax highlighting. Having just posted a long tutorial with many bits of code, I found it to be a pain, so this will be a welcome addition to my toolkit. However, I ran into a few problems implementing it because WordPress inserts a bunch of &lt;br /&gt; tags whenever there are line breaks. Fortunately, Renaud Bompuis has provided us with a solution in the form of a WordPress plugin. After installing it, everything worked perfectly! [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://blog.nkadesign.com/2006/wordpress-formating-and-colouring-code/#comment-308</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Fri, 04 Aug 2006 14:01:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=30#comment-308</guid>
		<description>&lt;p&gt;Thanks a lot, this was just the solution I needed!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks a lot, this was just the solution I needed!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Rumi</title>
		<link>http://blog.nkadesign.com/2006/wordpress-formating-and-colouring-code/#comment-158</link>
		<dc:creator>Rumi</dc:creator>
		<pubDate>Thu, 20 Jul 2006 05:17:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=30#comment-158</guid>
		<description>&lt;p&gt;Thank you for this post, it helped me alot while trying to get code posting going on my blog.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thank you for this post, it helped me alot while trying to get code posting going on my blog.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Nik</title>
		<link>http://blog.nkadesign.com/2006/wordpress-formating-and-colouring-code/#comment-124</link>
		<dc:creator>Nik</dc:creator>
		<pubDate>Wed, 12 Jul 2006 14:07:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=30#comment-124</guid>
		<description>&lt;p&gt;I just realized that there were two places I could change or uncheck the "visual rich editor" option. One's in the options tab (which is a global setting) and the other's on the "My Account" page. I disabled the check box at the very bottom and voila! It works :)&lt;/p&gt;

&lt;p&gt;Thanks a lot for your time :) I've been switching my blog from MovableType to WordPress and am very (very) happy with the latter's features and speed.&lt;/p&gt;

&lt;p&gt;Thanks again!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I just realized that there were two places I could change or uncheck the &#8220;visual rich editor&#8221; option. One&#8217;s in the options tab (which is a global setting) and the other&#8217;s on the &#8220;My Account&#8221; page. I disabled the check box at the very bottom and voila! It works :)</p>

<p>Thanks a lot for your time :) I&#8217;ve been switching my blog from MovableType to WordPress and am very (very) happy with the latter&#8217;s features and speed.</p>

<p>Thanks again!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Renaud</title>
		<link>http://blog.nkadesign.com/2006/wordpress-formating-and-colouring-code/#comment-116</link>
		<dc:creator>Renaud</dc:creator>
		<pubDate>Tue, 11 Jul 2006 05:38:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=30#comment-116</guid>
		<description>&lt;p&gt;Hi Nik,
there is no &lt;code&gt;pre&lt;/code&gt; or &lt;code&gt;code&lt;/code&gt; tag needed, only &lt;code&gt;textarea&lt;/code&gt;.
The modified version of the autoescape script I provide takes every occurence of the &lt;code&gt;textarea&lt;/code&gt; tags and everything in=between and encodes it before WordPress has a chance to mess it up, then it decodes it before outputing it in the final page verbatim.&lt;/p&gt;

&lt;p&gt;My suggestions are:
- make sure that you only use the default, non-rich-DHTML editor when writing posts in WordPress.
- make sure you include the dp.SyntaxHighlighter script references in the right location in the header and footer of your wordpress theme templates (have a look at the source of this page to see where I put mine).
- Make sure you install and activate in WordPress plugins my modified autoescape script.
- Check that, in your posts stored in the MySQL database, any occurence of the &lt;code&gt;textarea&lt;/code&gt; is actually encoded (should be long sequences of characters).&lt;/p&gt;

&lt;p&gt;If that still doesn't work, it could be that your theme's CSS messes up style for the &lt;code&gt;textarea&lt;/code&gt; tag. 
If that's the case, try to comment out any occurence of it in your CSS just to see if it has any effect.
You could also try to make sure that the SyntaxHighlighter's scripts are loaded after the definition for the theme's CSS.&lt;/p&gt;

&lt;p&gt;Good luck!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Nik,
there is no <code>pre</code> or <code>code</code> tag needed, only <code>textarea</code>.
The modified version of the autoescape script I provide takes every occurence of the <code>textarea</code> tags and everything in=between and encodes it before WordPress has a chance to mess it up, then it decodes it before outputing it in the final page verbatim.</p>

<p>My suggestions are:
- make sure that you only use the default, non-rich-DHTML editor when writing posts in WordPress.
- make sure you include the dp.SyntaxHighlighter script references in the right location in the header and footer of your wordpress theme templates (have a look at the source of this page to see where I put mine).
- Make sure you install and activate in WordPress plugins my modified autoescape script.
- Check that, in your posts stored in the MySQL database, any occurence of the <code>textarea</code> is actually encoded (should be long sequences of characters).</p>

<p>If that still doesn&#8217;t work, it could be that your theme&#8217;s CSS messes up style for the <code>textarea</code> tag. 
If that&#8217;s the case, try to comment out any occurence of it in your CSS just to see if it has any effect.
You could also try to make sure that the SyntaxHighlighter&#8217;s scripts are loaded after the definition for the theme&#8217;s CSS.</p>

<p>Good luck!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Nik</title>
		<link>http://blog.nkadesign.com/2006/wordpress-formating-and-colouring-code/#comment-112</link>
		<dc:creator>Nik</dc:creator>
		<pubDate>Mon, 10 Jul 2006 16:15:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=30#comment-112</guid>
		<description>&lt;p&gt;Hi there...&lt;/p&gt;

&lt;p&gt;Thank you for your efforts :) I tried using your modified plugin but still get 'spaghetti' code (everything in one line.) Is there a tag (like code or pre) I need to nest the textarea in (in the HTML view)? I tried everything with no luck...&lt;/p&gt;

&lt;p&gt;Thanks for the good work! :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi there&#8230;</p>

<p>Thank you for your efforts :) I tried using your modified plugin but still get &#8217;spaghetti&#8217; code (everything in one line.) Is there a tag (like code or pre) I need to nest the textarea in (in the HTML view)? I tried everything with no luck&#8230;</p>

<p>Thanks for the good work! :)</p>]]></content:encoded>
	</item>
</channel>
</rss>
