<?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>blog.watashii &#187; source code</title>
	<atom:link href="http://blog.watashii.com/tag/source-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.watashii.com</link>
	<description></description>
	<lastBuildDate>Wed, 02 Nov 2011 02:23:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>WordPress Syntax Highlighter</title>
		<link>http://blog.watashii.com/2008/07/wordpress-syntax-highlighter/</link>
		<comments>http://blog.watashii.com/2008/07/wordpress-syntax-highlighter/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 14:45:58 +0000</pubDate>
		<dc:creator>watashii</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[highlighter]]></category>
		<category><![CDATA[source code]]></category>
		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://blog.watashii.com/?p=21</guid>
		<description><![CDATA[While trying to find a way to syntax highlighting / autoformat programming code on WordPress, I came across this.  After a while, I realised it only works for WordPress hosted page.  To enable syntax highlighting on a self hosted WordPress blog,  you need to install the Google Syntax Highlighter plugin. Here are the installation steps: [...]


Related Posts:<ol><li><a href='http://blog.watashii.com/2008/12/upgrading-to-wordpress-27-coltrane/' rel='bookmark' title='Permanent Link: Upgrading to WordPress 2.7 Coltrane'>Upgrading to WordPress 2.7 Coltrane</a></li>
<li><a href='http://blog.watashii.com/2009/09/wordpress-code-at-the-end-of-urls-hack/' rel='bookmark' title='Permanent Link: WordPress Code At The End Of URLs, Hack?'>WordPress Code At The End Of URLs, Hack?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>While trying to find a way to syntax highlighting / autoformat programming code on WordPress, I came across <a href="http://faq.wordpress.com/2007/09/03/how-do-i-post-source-code/">this</a>.  After a while, I realised it only works for WordPress hosted page.  To enable syntax highlighting on a self hosted WordPress blog,  you need to install the <a href="http://wordpress.org/extend/plugins/google-syntax-highlighter/installation/">Google Syntax Highlighter plugin</a>.</p>
<p>Here are the installation steps:</p>
<p>1) Download the plugin zip file.<br />
2) Extract plugin into /wp-content/plugins directory.<br />
3) Activate the plugin.<br />
4) When posting, use the HTML editor and insert the following code:<br />
<code>&lt;pre name="code" class="sql"&gt;<br />
select * from tab;<br />
&lt;/pre&gt;<br />
</code><br />
5) Hopefully looks like:</p>
<pre name="code" class="sql">select * from tab;</pre>
<p>The google documentation for using the syntax highligher is available <a href="http://code.google.com/p/syntaxhighlighter/">here</a>.</p>


<p>Related Posts:<ol><li><a href='http://blog.watashii.com/2008/12/upgrading-to-wordpress-27-coltrane/' rel='bookmark' title='Permanent Link: Upgrading to WordPress 2.7 Coltrane'>Upgrading to WordPress 2.7 Coltrane</a></li>
<li><a href='http://blog.watashii.com/2009/09/wordpress-code-at-the-end-of-urls-hack/' rel='bookmark' title='Permanent Link: WordPress Code At The End Of URLs, Hack?'>WordPress Code At The End Of URLs, Hack?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.watashii.com/2008/07/wordpress-syntax-highlighter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

