<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Displaying HTML Source Code in Your Blog Posts</title>
	<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/</link>
	<description>WordPress news and updates from around the web.</description>
	<pubDate>Sun, 06 Jul 2008 09:10:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>

	<item>
		<title>By: run your car on water review</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-153237</link>
		<author>run your car on water review</author>
		<pubDate>Wed, 30 Apr 2008 23:17:42 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-153237</guid>
		<description>Hello,
It Would be nice if apostrophes and quotes were encoded as well, to prevent WordPress from changing them to fancy curly quotes, which is nice for text but not so nice for code.</description>
		<content:encoded><![CDATA[<p>Hello,<br />
It Would be nice if apostrophes and quotes were encoded as well, to prevent WordPress from changing them to fancy curly quotes, which is nice for text but not so nice for code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr Am</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-153213</link>
		<author>Mr Am</author>
		<pubDate>Thu, 17 Apr 2008 20:14:11 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-153213</guid>
		<description>@owner : how method that u used to fix the problem? care to share? i hope u will.. just give me an email about it.. tq..</description>
		<content:encoded><![CDATA[<p>@owner : how method that u used to fix the problem? care to share? i hope u will.. just give me an email about it.. tq..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cesar</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-153174</link>
		<author>Cesar</author>
		<pubDate>Tue, 01 Apr 2008 09:39:43 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-153174</guid>
		<description>afaçlsfºalfsºa aºçlaºsf</description>
		<content:encoded><![CDATA[<p>afaçlsfºalfsºa aºçlaºsf</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: accountancy jobs</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-152798</link>
		<author>accountancy jobs</author>
		<pubDate>Tue, 04 Dec 2007 18:06:25 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-152798</guid>
		<description>Elliot Swan’s Postable works well for encoding HTML entities as well.</description>
		<content:encoded><![CDATA[<p>Elliot Swan’s Postable works well for encoding HTML entities as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jobs online</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-152786</link>
		<author>jobs online</author>
		<pubDate>Tue, 04 Dec 2007 16:52:42 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-152786</guid>
		<description>I have found that it still changes singlequotes into ‘ and ’, invalidating everything and making copy/paste a complete pain as well.</description>
		<content:encoded><![CDATA[<p>I have found that it still changes singlequotes into ‘ and ’, invalidating everything and making copy/paste a complete pain as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Be A Super Dad</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-152659</link>
		<author>Be A Super Dad</author>
		<pubDate>Mon, 15 Oct 2007 10:22:05 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-152659</guid>
		<description>Sweet  article.
 I hope you'll comment my site..
 Thank You Again</description>
		<content:encoded><![CDATA[<p>Sweet  article.<br />
 I hope you&#8217;ll comment my site..<br />
 Thank You Again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-152655</link>
		<author>Steve</author>
		<pubDate>Sat, 13 Oct 2007 18:00:07 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-152655</guid>
		<description>You could enclose the code with in a textarea tag, like this:

HTML here!

Not sure what your system will do with this, but the idea is simple</description>
		<content:encoded><![CDATA[<p>You could enclose the code with in a textarea tag, like this:</p>
<p>HTML here!</p>
<p>Not sure what your system will do with this, but the idea is simple</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trk&#8217;s weblog / Online Spell Checker...</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151991</link>
		<author>trk&#8217;s weblog / Online Spell Checker...</author>
		<pubDate>Wed, 13 Jun 2007 13:23:57 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151991</guid>
		<description>[...] Cool. P.S. Should have known that, to display code in wordress, should have used htmlentities.Thanks.   Share and Enjoy: These icons link to social bookmarking sites where readers can share and [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Cool. P.S. Should have known that, to display code in wordress, should have used htmlentities.Thanks.   Share and Enjoy: These icons link to social bookmarking sites where readers can share and [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Azmeen</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151258</link>
		<author>Azmeen</author>
		<pubDate>Wed, 16 May 2007 13:34:48 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151258</guid>
		<description>Just use a combination of both &#60;code&#62; and &#38;lt; &#38;gt;

For example:

&lt;code&gt;&#60;link rel='archives' title='May 2007' href='http://wordlog.com/archives/2007/05/' /&#62;&lt;/code&gt;

Praying this works as I press the Submit Comment button ;)</description>
		<content:encoded><![CDATA[<p>Just use a combination of both &lt;code&gt; and &amp;lt; &amp;gt;</p>
<p>For example:</p>
<p><code>&lt;link rel='archives' title='May 2007' href='http://wordlog.com/archives/2007/05/' /&gt;</code></p>
<p>Praying this works as I press the Submit Comment button <img src='http://wordlog.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OmegaMan</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151245</link>
		<author>OmegaMan</author>
		<pubDate>Tue, 15 May 2007 16:51:24 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151245</guid>
		<description>I am a developer that has to publish code snippets constantly in my blog. I have begun to use the tool Microsoft's Windows Live Writer (in beta at this time) which actually interfaces with WordPress! Its basic function as a blogging tool is excellent and I can post my blogs from it to WordPress and extract from the server to my local machine.

But when I combine it with a Code Snippet addin tool, I can blog about HTML, XML, and C#. It handles other languages as well. It also allows one to embed styles, alternate lines, enclose in a box...really a nice addin which makes using WLW to blog tech topics no longer a chore.

Here are the links. Microsoft plans to keep the WLW free after beta. Note the belows are all PC installs programs, so no need to figure out PHP commands or wordpress blog nuances.

WLW: http://windowslivewriter.spaces.live.com/
Code Snippet Add in: http://lvildosola.blogspot.com/2007/02/code-snippet-plugin-for-windows-live.html</description>
		<content:encoded><![CDATA[<p>I am a developer that has to publish code snippets constantly in my blog. I have begun to use the tool Microsoft&#8217;s Windows Live Writer (in beta at this time) which actually interfaces with WordPress! Its basic function as a blogging tool is excellent and I can post my blogs from it to WordPress and extract from the server to my local machine.</p>
<p>But when I combine it with a Code Snippet addin tool, I can blog about HTML, XML, and C#. It handles other languages as well. It also allows one to embed styles, alternate lines, enclose in a box&#8230;really a nice addin which makes using WLW to blog tech topics no longer a chore.</p>
<p>Here are the links. Microsoft plans to keep the WLW free after beta. Note the belows are all PC installs programs, so no need to figure out PHP commands or wordpress blog nuances.</p>
<p>WLW: <a href="http://windowslivewriter.spaces.live.com/" rel="nofollow">http://windowslivewriter.spaces.live.com/</a><br />
Code Snippet Add in: <a href="http://lvildosola.blogspot.com/2007/02/code-snippet-plugin-for-windows-live.html" rel="nofollow">http://lvildosola.blogspot.com/2007/02/code-snippet-plugin-for-windows-live.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: engtech</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151231</link>
		<author>engtech</author>
		<pubDate>Mon, 14 May 2007 18:55:31 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151231</guid>
		<description>@schuen: You still hit the smartquotes issue with using the visual editor.</description>
		<content:encoded><![CDATA[<p>@schuen: You still hit the smartquotes issue with using the visual editor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: engtech</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151230</link>
		<author>engtech</author>
		<pubDate>Mon, 14 May 2007 18:52:37 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151230</guid>
		<description>One thing you *have* to watch out for is those !@#@#!$ing smartquotes.

All code samples need to be:

- entity encoded
- put in a PRE tag

or all of your quotations will be turned into smartquotes (which are anything but) and will break for people who try to use their code samples.

Whoever thought converting quotes to smartquotes was a good idea should be raked over the coals.</description>
		<content:encoded><![CDATA[<p>One thing you *have* to watch out for is those !@#@#!$ing smartquotes.</p>
<p>All code samples need to be:</p>
<p>- entity encoded<br />
- put in a PRE tag</p>
<p>or all of your quotations will be turned into smartquotes (which are anything but) and will break for people who try to use their code samples.</p>
<p>Whoever thought converting quotes to smartquotes was a good idea should be raked over the coals.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: schuen</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151229</link>
		<author>schuen</author>
		<pubDate>Mon, 14 May 2007 18:50:45 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151229</guid>
		<description>Just write html code in the "Visual" editor in WordPress and you will get the encoded code automatically.</description>
		<content:encoded><![CDATA[<p>Just write html code in the &#8220;Visual&#8221; editor in WordPress and you will get the encoded code automatically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lorelle</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151227</link>
		<author>Lorelle</author>
		<pubDate>Mon, 14 May 2007 15:46:46 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151227</guid>
		<description>Little problem with your example, Carthik. You forgot to encode the apostrophes and quote marks. This is really common and if the code is copied will break upon use.

I wrote about this and included converters and the actual code in &lt;a href="http://lorelle.wordpress.com/2007/02/04/wordpresscom-blog-bling-signatures-and-writing-code/" title="Signatures and Writing Code" rel="nofollow"&gt;Blog Bling: Signatures and Writing Code&lt;/a&gt;, and did a bit of a review and listing of &lt;a href="http://lorelle.wordpress.com/2007/02/23/wordpress-plugins-that-help-you-write-code/" title="WordPress Plugins That Help You Write Code" rel="nofollow"&gt;WordPress Plugins That Help You Write Code&lt;/a&gt; for those who do this all the time.</description>
		<content:encoded><![CDATA[<p>Little problem with your example, Carthik. You forgot to encode the apostrophes and quote marks. This is really common and if the code is copied will break upon use.</p>
<p>I wrote about this and included converters and the actual code in <a href="http://lorelle.wordpress.com/2007/02/04/wordpresscom-blog-bling-signatures-and-writing-code/" title="Signatures and Writing Code" rel="nofollow">Blog Bling: Signatures and Writing Code</a>, and did a bit of a review and listing of <a href="http://lorelle.wordpress.com/2007/02/23/wordpress-plugins-that-help-you-write-code/" title="WordPress Plugins That Help You Write Code" rel="nofollow">WordPress Plugins That Help You Write Code</a> for those who do this all the time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajay</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151225</link>
		<author>Ajay</author>
		<pubDate>Mon, 14 May 2007 13:40:47 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151225</guid>
		<description>I use Notepad++ for encoding the HTML code before I display it on my blog.</description>
		<content:encoded><![CDATA[<p>I use Notepad++ for encoding the HTML code before I display it on my blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WP_CodeShield :: Dammit Jim!</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151223</link>
		<author>WP_CodeShield :: Dammit Jim!</author>
		<pubDate>Mon, 14 May 2007 13:31:14 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151223</guid>
		<description>[...] the plugin most of the way done and then got distracted with other things. But after reading about another person having the same annoyance, I decided I should finish the [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] the plugin most of the way done and then got distracted with other things. But after reading about another person having the same annoyance, I decided I should finish the [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Serge K. Keller</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151217</link>
		<author>Serge K. Keller</author>
		<pubDate>Mon, 14 May 2007 07:28:58 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151217</guid>
		<description>Don't take my word 100% on this, but if I remember well Markdown (and Textile) is 'parallel-compatible' with HTML. If you activate Markdown, new posts written with it will show up fine and old posts written in HTML will show as they were before. But if you want to come back to HTML, you should leave Markdown activated or risk to see your markdown-written posts scrambled.

Can anyone confirm (or infirm) this?</description>
		<content:encoded><![CDATA[<p>Don&#8217;t take my word 100% on this, but if I remember well Markdown (and Textile) is &#8216;parallel-compatible&#8217; with HTML. If you activate Markdown, new posts written with it will show up fine and old posts written in HTML will show as they were before. But if you want to come back to HTML, you should leave Markdown activated or risk to see your markdown-written posts scrambled.</p>
<p>Can anyone confirm (or infirm) this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ozh</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151216</link>
		<author>Ozh</author>
		<pubDate>Mon, 14 May 2007 06:33:50 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151216</guid>
		<description>If you want to post code, be it HTML PHP or anything, your &lt;b&gt;just can't live&lt;/b&gt; with a plugin to do so. WP's formatting functions are uber annoying when you're dealing with code, and workaround like encoding entities, using markdown etc... are all but futureproof.

Recommended: http://blog.igeek.info/wp-plugins/igsyntax-hiliter/ or http://codex.wordpress.org/Plugins/Syntax_Highlighting</description>
		<content:encoded><![CDATA[<p>If you want to post code, be it HTML PHP or anything, your <b>just can&#8217;t live</b> with a plugin to do so. WP&#8217;s formatting functions are uber annoying when you&#8217;re dealing with code, and workaround like encoding entities, using markdown etc&#8230; are all but futureproof.</p>
<p>Recommended: <a href="http://blog.igeek.info/wp-plugins/igsyntax-hiliter/" rel="nofollow">http://blog.igeek.info/wp-plugins/igsyntax-hiliter/</a> or <a href="http://codex.wordpress.org/Plugins/Syntax_Highlighting" rel="nofollow">http://codex.wordpress.org/Plugins/Syntax_Highlighting</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carthik</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151215</link>
		<author>Carthik</author>
		<pubDate>Mon, 14 May 2007 05:44:53 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151215</guid>
		<description>Good point about the apostrophes and the quotes. 

Don't you have to start using Markdown from the very beginning to use it? Could I start using it now, say - what sense will it make of the older posts, and would it scramble stuff up by processing things that weren't written with Markdown in mind?</description>
		<content:encoded><![CDATA[<p>Good point about the apostrophes and the quotes. </p>
<p>Don&#8217;t you have to start using Markdown from the very beginning to use it? Could I start using it now, say - what sense will it make of the older posts, and would it scramble stuff up by processing things that weren&#8217;t written with Markdown in mind?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Clark</title>
		<link>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151214</link>
		<author>Joe Clark</author>
		<pubDate>Mon, 14 May 2007 04:35:28 +0000</pubDate>
		<guid>http://wordlog.com/archives/2007/05/13/displaying-html-source-code-in-your-blog-posts/#comment-151214</guid>
		<description>You can somewhat laboriously use ampersand 39 semicolon for neutral apostrophe and ampersand quot semicolon for neutral quote (or look up the numeric value thereof if you are concerned about XHTML purity). Your text editor can do a search-and-replace.</description>
		<content:encoded><![CDATA[<p>You can somewhat laboriously use ampersand 39 semicolon for neutral apostrophe and ampersand quot semicolon for neutral quote (or look up the numeric value thereof if you are concerned about XHTML purity). Your text editor can do a search-and-replace.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
