<?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>harry.blog &#187; code</title>
	<atom:link href="http://blog.harrspy.com/tag/code/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.harrspy.com</link>
	<description>留住往昔的美丽，去开创未来的光明。</description>
	<lastBuildDate>Wed, 01 Sep 2010 14:30:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>测试新的代码高亮插件 wp-syntax</title>
		<link>http://blog.harrspy.com/code-highlight-plugin-wp-syntax</link>
		<comments>http://blog.harrspy.com/code-highlight-plugin-wp-syntax#comments</comments>
		<pubDate>Thu, 26 Jun 2008 16:10:57 +0000</pubDate>
		<dc:creator>harry</dc:creator>
				<category><![CDATA[harry]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[GeSHi]]></category>
		<category><![CDATA[heighlight]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp-syntax]]></category>

		<guid isPermaLink="false">http://harryxu.cn/blog/?p=177</guid>
		<description><![CDATA[1 2 3 4 5 6 7 8 9 from datetime import date &#160; class Test&#40;object&#41;: def printToday&#40;self&#41;: today = date.today&#40;&#41; print 'Hello, today is %s.' % today.isoformat&#40;&#41; &#160; if __name__ == '__main__': Test&#40;&#41;.printToday&#40;&#41; 之前一直用的 iG:Syntax Hiliter 已经长时间不更新了，现在换上了一个新的代码高亮插件 WP-Syntax，感觉不错。 注意，由于上面说到的两个插件都是基于 GeSHi 实现的，所以只能2者选其一，同时使用的话，会由于 GeSHi 中的 Class 重复定义而出错。 唉，要抽空把以前发的代码替换以下了]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">datetime</span> <span style="color: #ff7700;font-weight:bold;">import</span> date
&nbsp;
<span style="color: #ff7700;font-weight:bold;">class</span> Test<span style="color: black;">&#40;</span><span style="color: #008000;">object</span><span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">def</span> printToday<span style="color: black;">&#40;</span><span style="color: #008000;">self</span><span style="color: black;">&#41;</span>:
        today = date.<span style="color: black;">today</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">'Hello, today is %s.'</span> <span style="color: #66cc66;">%</span> today.<span style="color: black;">isoformat</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">if</span> __name__ == <span style="color: #483d8b;">'__main__'</span>:
    Test<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>.<span style="color: black;">printToday</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<p>之前一直用的 <a href="http://blog.igeek.info/wp-plugins/igsyntax-hiliter/" target="_blank">iG:Syntax Hiliter</a> 已经长时间不更新了，现在换上了一个新的代码高亮插件 <a href="http://wordpress.org/extend/plugins/wp-syntax/" target="_blank">WP-Syntax</a>，感觉不错。</p>
<p>注意，由于上面说到的两个插件都是基于 <a href="http://qbnz.com/highlighter/" target='_blank'>GeSHi</a> 实现的，所以只能2者选其一，同时使用的话，会由于 GeSHi 中的 Class 重复定义而出错。</p>
<p>唉，要抽空把以前发的代码替换以下了 <img src='http://blog.harrspy.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.harrspy.com/code-highlight-plugin-wp-syntax/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
