<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Penguinspeak &#187; WordPress</title>
	<atom:link href="http://macmartine.com/blog/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://macmartine.com/blog</link>
	<description>This is how I see it.</description>
	<lastBuildDate>Wed, 09 Dec 2009 23:30:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Displaying code in WordPress posts</title>
		<link>http://macmartine.com/blog/2009/10/displaying-code-in-wordpress-posts.html</link>
		<comments>http://macmartine.com/blog/2009/10/displaying-code-in-wordpress-posts.html#comments</comments>
		<pubDate>Thu, 29 Oct 2009 16:09:44 +0000</pubDate>
		<dc:creator>99miles</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://macmartine.com/blog/?p=109</guid>
		<description><![CDATA[I&#8217;ve conquered it! Somewhere along the line of this blog my code snippets quit displaying properly. I&#8217;ve spent a bit of time trying to get it working in the past and just gave up. But alas! I kept trying to use: [sourcecode language="xml"] [/sourcecode] and it caused a lot of bad words to come out [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve conquered it!<br />
Somewhere along the line of this blog my code snippets quit displaying properly. I&#8217;ve spent a bit of time trying to get it working in the past and just gave up. But alas!<br />
I kept trying to use:</p>
<pre class="css">[sourcecode language="xml"] <code> [/sourcecode] </code></pre>
<p>and it caused a lot of bad words to come out if my mouth because it never worked. I read that it doesn&#8217;t work with all themes so I tried a handful. </p>
<p>More bad words.</p>
<p>THEN I saw fine print somewhere that that only works on wordpress.com installed blogs. If you have yours hosted elsewhere it&#8217;s a different beast. You must install <a title="Google Syntax Hightlighter for WordPress" href="http://wordpress.org/extend/plugins/google-syntax-highlighter/installation/" target="_self">Google Syntax Highlighter for WordPress</a></p>
<p>The usage is a bit different, so check <a title="Google Syntax Hightlighter for WordPress Usage" href="http://code.google.com/p/syntaxhighlighter/wiki/Usage" target="_self">this doc</a> before you start typing away.</p>
<p>ALSO NOTE that you can&#8217;t just type</p>
<pre style="border-left: 3px solid #cccccc; padding: 0.5em; margin-left: 2em;">&lt;pre name="code" class="xml"&gt;
... some code here ...
&lt;/pre&gt;</pre>
<p>into the &#8216;Visual&#8217; tab in the wordpress post page. You must switch to &#8216;HTML&#8217; view or it won&#8217;t work.</p>
<p>Ahhh, now I get to go through some old posts and fix the displayed code!</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Displaying+code+in+WordPress+posts+http://bit.ly/2FEFLN" title="Post to Twitter"><img class="nothumb" src="http://macmartine.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big2.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://macmartine.com/blog/2009/10/displaying-code-in-wordpress-posts.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
