<?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: Formatting Objective-C code with the HTML code tag</title>
	<atom:link href="http://losingfight.com/blog/2007/08/18/formatting-objective-c-code-with-the-html-code-tag/feed/" rel="self" type="application/rss+xml" />
	<link>http://losingfight.com/blog/2007/08/18/formatting-objective-c-code-with-the-html-code-tag/</link>
	<description>because i don&#039;t write software for windows</description>
	<lastBuildDate>Tue, 31 Jan 2012 00:17:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Denis Defreyne</title>
		<link>http://losingfight.com/blog/2007/08/18/formatting-objective-c-code-with-the-html-code-tag/comment-page-1/#comment-495</link>
		<dc:creator>Denis Defreyne</dc:creator>
		<pubDate>Mon, 20 Aug 2007 08:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.losingfight.com/blog/2007/08/18/formatting-objective-c-code-with-the-html-code-tag/#comment-495</guid>
		<description>Looks like my markup broke, so let&#039;s try that again…

I use &lt;pre&gt;&lt;code&gt;…&lt;/code&gt;&lt;/pre&gt;. (&lt;pre&gt; is a block element, so no need for code { display: block; }.)

On my blog, I use syntax highlighting, but I mark up everything manually: &lt;span class=&quot;variable&quot;&gt;, &lt;span class=&quot;function&quot;&gt;, etc. Takes a while, but the result is pretty. (And I can distinguish variables from functions, which no syntax highlighter can do.)

TextMate also has copy-as-HTML functionality, but I don&#039;t use it because the HTML it generates is *massive*.

Additionally, on my site, if a code block becomes to large, I make it expand horizontally when hovering over it. Real nifty, if I say so myself.</description>
		<content:encoded><![CDATA[<p>Looks like my markup broke, so let&#8217;s try that again…</p>
<p>I use &lt;pre&gt;&lt;code&gt;…&lt;/code&gt;&lt;/pre&gt;. (&lt;pre&gt; is a block element, so no need for code { display: block; }.)</p>
<p>On my blog, I use syntax highlighting, but I mark up everything manually: &lt;span class=&#8221;variable&#8221;&gt;, &lt;span class=&#8221;function&#8221;&gt;, etc. Takes a while, but the result is pretty. (And I can distinguish variables from functions, which no syntax highlighter can do.)</p>
<p>TextMate also has copy-as-HTML functionality, but I don&#8217;t use it because the HTML it generates is *massive*.</p>
<p>Additionally, on my site, if a code block becomes to large, I make it expand horizontally when hovering over it. Real nifty, if I say so myself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://losingfight.com/blog/2007/08/18/formatting-objective-c-code-with-the-html-code-tag/comment-page-1/#comment-494</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Sun, 19 Aug 2007 15:25:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.losingfight.com/blog/2007/08/18/formatting-objective-c-code-with-the-html-code-tag/#comment-494</guid>
		<description>&gt; Think you meant to escape the tags now, too.

*sigh*, yes. In fact, I did the first time I pasted into the WordPress editor. It was just kind enough to switch the &lt; and &gt; into actual &lt; and &gt; characters the first time I hit save (I do a &quot;Save and Continue&quot; first to preview it, then hit &quot;Publish&quot;).</description>
		<content:encoded><![CDATA[<p>> Think you meant to escape the tags now, too.</p>
<p>*sigh*, yes. In fact, I did the first time I pasted into the WordPress editor. It was just kind enough to switch the &amp;lt; and &amp;gt; into actual &lt; and &gt; characters the first time I hit save (I do a &#8220;Save and Continue&#8221; first to preview it, then hit &#8220;Publish&#8221;).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Johnson</title>
		<link>http://losingfight.com/blog/2007/08/18/formatting-objective-c-code-with-the-html-code-tag/comment-page-1/#comment-493</link>
		<dc:creator>Jeff Johnson</dc:creator>
		<pubDate>Sun, 19 Aug 2007 13:58:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.losingfight.com/blog/2007/08/18/formatting-objective-c-code-with-the-html-code-tag/#comment-493</guid>
		<description>I agree with Ankur: use &lt;pre&gt;&lt;code&gt;.  By the way, Ankur, doesn&#039;t &lt;pre&gt; already create a block?
In my style.css, I use the following to automatically create a horizontal scrollbar so that the content doesn&#039;t overflow to the right:
&lt;code&gt;.entry pre {overflow: auto;}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I agree with Ankur: use &lt;pre&gt;&lt;code&gt;.  By the way, Ankur, doesn&#8217;t &lt;pre&gt; already create a block?<br />
In my style.css, I use the following to automatically create a horizontal scrollbar so that the content doesn&#8217;t overflow to the right:<br />
<code>.entry pre {overflow: auto;}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankur</title>
		<link>http://losingfight.com/blog/2007/08/18/formatting-objective-c-code-with-the-html-code-tag/comment-page-1/#comment-492</link>
		<dc:creator>Ankur</dc:creator>
		<pubDate>Sun, 19 Aug 2007 09:33:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.losingfight.com/blog/2007/08/18/formatting-objective-c-code-with-the-html-code-tag/#comment-492</guid>
		<description>Use the &lt;pre&gt; tag for block level code. It&#039;s usually monospace as well, so your formatting stays nice. For semantics, I wrap code in &lt;pre&gt; and &lt;code&gt;, and in my theme I&#039;ve styled &lt;code&gt; to display:block. For indentation, just use the padding-left CSS attribute.

If you need some help or if you&#039;re interested with what I&#039;ve done with my theme, just let me know. Unfortunately, there is a real shortage of semantic, optimized and accessible themes for WordPress and I&#039;m considering releasing the theme I&#039;m using... maybe.

But seriously, it sounds as if you&#039;re going through a lot of pain for something that shouldn&#039;t really be a pain. PRE, CODE, SAMP and VAR... they wont bite!</description>
		<content:encoded><![CDATA[<p>Use the &lt;pre&gt; tag for block level code. It&#8217;s usually monospace as well, so your formatting stays nice. For semantics, I wrap code in &lt;pre&gt; and &lt;code&gt;, and in my theme I&#8217;ve styled &lt;code&gt; to display:block. For indentation, just use the padding-left CSS attribute.</p>
<p>If you need some help or if you&#8217;re interested with what I&#8217;ve done with my theme, just let me know. Unfortunately, there is a real shortage of semantic, optimized and accessible themes for WordPress and I&#8217;m considering releasing the theme I&#8217;m using&#8230; maybe.</p>
<p>But seriously, it sounds as if you&#8217;re going through a lot of pain for something that shouldn&#8217;t really be a pain. PRE, CODE, SAMP and VAR&#8230; they wont bite!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Schinckel</title>
		<link>http://losingfight.com/blog/2007/08/18/formatting-objective-c-code-with-the-html-code-tag/comment-page-1/#comment-491</link>
		<dc:creator>Matt Schinckel</dc:creator>
		<pubDate>Sun, 19 Aug 2007 08:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.losingfight.com/blog/2007/08/18/formatting-objective-c-code-with-the-html-code-tag/#comment-491</guid>
		<description>Think you meant to escape the tags now, too.

I use SubEthaEdit, just to use the Copy As XHTML menu item.  Even if I have been coding in another application (Komodo, or Script Editor).

I have had to tweak the output, and my CSS file, but it is the method I have found works best.</description>
		<content:encoded><![CDATA[<p>Think you meant to escape the tags now, too.</p>
<p>I use SubEthaEdit, just to use the Copy As XHTML menu item.  Even if I have been coding in another application (Komodo, or Script Editor).</p>
<p>I have had to tweak the output, and my CSS file, but it is the method I have found works best.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

