<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: WP Plugin: Code Viewer</title>
	<atom:link href="http://elasticdog.com/2004/09/code-viewer/feed/" rel="self" type="application/rss+xml" />
	<link>http://elasticdog.com/2004/09/code-viewer/</link>
	<description>Imagine Something Clever</description>
	<lastBuildDate>Wed, 21 Jul 2010 14:40:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: HÃ¥kan CarlstrÃ¶m</title>
		<link>http://elasticdog.com/2004/09/code-viewer/comment-page-1/#comment-23406</link>
		<dc:creator>HÃ¥kan CarlstrÃ¶m</dc:creator>
		<pubDate>Wed, 18 Jul 2007 18:48:00 +0000</pubDate>
		<guid isPermaLink="false">/?p=10#comment-23406</guid>
		<description>I have modified the CodeViewer Script (now version 1.4.3) to work with a WYSIWYG-editor and highlighting using GeSHi. You can find the script on
http://www.familjencarlstrom.se/WordPress/?p=141</description>
		<content:encoded><![CDATA[<p>I have modified the CodeViewer Script (now version 1.4.3) to work with a WYSIWYG-editor and highlighting using GeSHi. You can find the script on<br />
<a href="http://www.familjencarlstrom.se/WordPress/?p=141" rel="nofollow">http://www.familjencarlstrom.se/WordPress/?p=141</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thale</title>
		<link>http://elasticdog.com/2004/09/code-viewer/comment-page-1/#comment-19210</link>
		<dc:creator>Thale</dc:creator>
		<pubDate>Tue, 22 May 2007 08:59:05 +0000</pubDate>
		<guid isPermaLink="false">/?p=10#comment-19210</guid>
		<description>Excellent plugin! thanks</description>
		<content:encoded><![CDATA[<p>Excellent plugin! thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David House</title>
		<link>http://elasticdog.com/2004/09/code-viewer/comment-page-1/#comment-14854</link>
		<dc:creator>David House</dc:creator>
		<pubDate>Sun, 25 Feb 2007 21:16:18 +0000</pubDate>
		<guid isPermaLink="false">/?p=10#comment-14854</guid>
		<description>Hi Aaron!

Great job with this plugin. I&#039;m revamping my website at the moment, and one of the jobs is to upgrade WordPress to the latest version. Seeing as my grabcode plugin is now a bit antiquated, I thought I&#039;d google for a replacement. This is just what I need, and wow, it&#039;s even based on my own older plugin! Hehe. It&#039;s a small web.

I made a small alteration, creating a $default_uri variable alongside $default_path. This forms the base of the &#039;Download this snippet&#039; links. Your current code uses the same variable as a parameter to file() (which expects a filesystem path) and in the href attribute (which expects a URL). The reason it works is that you can pass a URL to file(), too, but this won&#039;t work on systems with tought security. A two-variable approach, one to hold the filesystem path to the snippets folder, and one to hold the URL to it, is somewhat cleaner and more portable.

Here&#039;s my diff, in unified diff format: http://pastebin.com/888795</description>
		<content:encoded><![CDATA[<p>Hi Aaron!</p>
<p>Great job with this plugin. I&#8217;m revamping my website at the moment, and one of the jobs is to upgrade WordPress to the latest version. Seeing as my grabcode plugin is now a bit antiquated, I thought I&#8217;d google for a replacement. This is just what I need, and wow, it&#8217;s even based on my own older plugin! Hehe. It&#8217;s a small web.</p>
<p>I made a small alteration, creating a $default_uri variable alongside $default_path. This forms the base of the &#8216;Download this snippet&#8217; links. Your current code uses the same variable as a parameter to file() (which expects a filesystem path) and in the href attribute (which expects a URL). The reason it works is that you can pass a URL to file(), too, but this won&#8217;t work on systems with tought security. A two-variable approach, one to hold the filesystem path to the snippets folder, and one to hold the URL to it, is somewhat cleaner and more portable.</p>
<p>Here&#8217;s my diff, in unified diff format: <a href="http://pastebin.com/888795" rel="nofollow">http://pastebin.com/888795</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://elasticdog.com/2004/09/code-viewer/comment-page-1/#comment-13329</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 29 Jan 2007 02:30:04 +0000</pubDate>
		<guid isPermaLink="false">/?p=10#comment-13329</guid>
		<description>Just realised that my code got stripped out :S 
Apologies.  Basically it replaces my one tag that has the data in it with an open and close tag that has no data.
&lt;code&gt;
 
&lt;/code&gt;into:&lt;code&gt;


&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Just realised that my code got stripped out :S<br />
Apologies.  Basically it replaces my one tag that has the data in it with an open and close tag that has no data.<br />
<code></p>
<p></code>into:<code></p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://elasticdog.com/2004/09/code-viewer/comment-page-1/#comment-13328</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 29 Jan 2007 02:17:07 +0000</pubDate>
		<guid isPermaLink="false">/?p=10#comment-13328</guid>
		<description>Hi,
I have just tried this in wordpress 2.1 - At first it works fine, displays the code nicely, but whenever I go to edit the post and access the HTML I get:

rather than what I put in which was:
 
If i save any changes then the code is no longer displayed :(
Wish I could get this right as it looks a sweet plugin!
Cheers,
Dan</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have just tried this in wordpress 2.1 &#8211; At first it works fine, displays the code nicely, but whenever I go to edit the post and access the HTML I get:</p>
<p>rather than what I put in which was:</p>
<p>If i save any changes then the code is no longer displayed <img src='http://elasticdog.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
Wish I could get this right as it looks a sweet plugin!<br />
Cheers,<br />
Dan</p>
]]></content:encoded>
	</item>
</channel>
</rss>
