<?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>Tofu &#187; WordPress</title>
	<atom:link href="http://tofu.im/blog/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>https://tofu.im/blog</link>
	<description>Tofu is the best food all around the world!</description>
	<lastBuildDate>Sun, 29 Apr 2012 07:58:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Syntax Highlighter</title>
		<link>https://tofu.im/blog/2011/08/16/syntax-highlighter/</link>
		<comments>https://tofu.im/blog/2011/08/16/syntax-highlighter/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 16:45:14 +0000</pubDate>
		<dc:creator>Csineneo</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[syntax highlighter]]></category>

		<guid isPermaLink="false">https://tofu.im/blog/?p=1137</guid>
		<description><![CDATA[前些日子搬家都時候把語法高亮插件從 Google Syntax Highlighter 換成了 Syntax Highlighter，主要是因爲前者對特殊符號的轉義處理不甚完美，且早已不再更新。不過後者也帶來了新問題： 悲伤的采购 @ 2011/08/15, 16:58:59, UTC+8 Says: 话说，复制代码时行号也一并复制了。。。 看了下源碼，用的是 table 來排版，簡單的換爲 ol 應當能避免複製行號，但會失去行號開關的功能，不過只是個小問題，可以無視了。 修改 Scripts/shCore.js 文件，找到 &#160; &#160; &#160; &#160; &#160; &#160; code += &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; '&#60;div class=&#34;line ' + lineClass + '&#34;&#62;' &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>前些日子搬家都時候把語法高亮插件從 Google Syntax Highlighter 換成了 <a href="https://tofu.im/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2FsZXhnb3JiYXRjaGV2LmNvbS9TeW50YXhIaWdobGlnaHRlci8=">Syntax Highlighter</a>，主要是因爲前者對特殊符號的轉義處理不甚完美，且早已不再更新。不過後者也帶來了新問題：</p>
<blockquote><p>
悲伤的采购 @ 2011/08/15, 16:58:59, UTC+8 Says:<br />
  话说，复制代码时行号也一并复制了。。。
</p></blockquote>
<p>看了下<a href="https://tofu.im/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cHM6Ly9naXRodWIuY29tL2FsZXhnb3JiYXRjaGV2L1N5bnRheEhpZ2hsaWdodGVyL2Jsb2IvbWFzdGVyL3NjcmlwdHMvc2hDb3JlLmpzI0wxNDc2">源碼</a>，用的是 table 來排版，簡單的換爲 ol 應當能避免複製行號，但會失去行號開關的功能，不過只是個小問題，可以無視了。</p>
<p>修改 Scripts/shCore.js 文件，找到</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="javascript"><ol><li style=""><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; code <span style="color: #339933;">+=</span></div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&lt;div class=&quot;line '</span> <span style="color: #339933;">+</span> lineClass <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot;&gt;'</span></div></li>
<li style=""><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;table&gt;'</span></div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;tr&gt;'</span></div></li>
<li style=""><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span>hasGutter <span style="color: #339933;">?</span> <span style="color: #3366CC;">'&lt;td class=&quot;number&quot;&gt;&lt;code&gt;'</span> <span style="color: #339933;">+</span> lineNumber <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/code&gt;&lt;/td&gt;'</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span></div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;td class=&quot;content&quot;&gt;'</span></div></li>
<li style=""><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span>spaces <span style="color: #339933;">!=</span> <span style="color: #003366; font-weight: bold;">null</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">'&lt;code class=&quot;spaces&quot;&gt;'</span> <span style="color: #339933;">+</span> spaces.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">' '</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">' '</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/code&gt;'</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span></div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span> line</div></li>
<li style=""><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/td&gt;'</span></div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/tr&gt;'</span></div></li>
<li style=""><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/table&gt;'</span></div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/div&gt;'</span></div></li>
<li style=""><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">;</span></div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li>
<li style=""><div style="">&nbsp;</div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> code<span style="color: #339933;">;</span></div></li>
</ol></div></div>
</div>

<p>替換爲</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="javascript"><ol><li style=""><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; code <span style="color: #339933;">+=</span></div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&lt;li class=&quot;line '</span> <span style="color: #339933;">+</span> lineClass <span style="color: #339933;">+</span> <span style="color: #3366CC;">' content&quot;&gt;'</span></div></li>
<li style=""><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span>spaces <span style="color: #339933;">!=</span> <span style="color: #003366; font-weight: bold;">null</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">'&lt;code class=&quot;spaces&quot;&gt;'</span> <span style="color: #339933;">+</span> spaces.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">' '</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">' '</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/code&gt;'</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span></div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span> line</div></li>
<li style=""><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/li&gt;'</span></div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">;</span></div></li>
<li style=""><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp;</div></li>
<li style=""><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #3366CC;">'&lt;ol class=&quot;line&quot;&gt;'</span> <span style="color: #339933;">+</span> code <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/ol&gt;'</span><span style="color: #339933;">;</span></div></li>
</ol></div></div>
</div>

<p>修改 Style/shCore.css 文件，加入</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="css"><ol><li style=""><div style=""><span style="color: #6666ff;">.syntaxhighlighter</span> <span style="color: #00AA00;">&#123;</span></div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#e7e5dc</span> !important<span style="color: #00AA00;">;</span></div></li>
<li style=""><div style="">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span> !important<span style="color: #00AA00;">;</span></div></li>
<li style="background-color: #f8f8f8;"><div style=""><span style="color: #00AA00;">&#125;</span></div></li>
<li style=""><div style="">&nbsp;</div></li>
<li style="background-color: #f8f8f8;"><div style=""><span style="color: #6666ff;">.syntaxhighlighter</span> ol li <span style="color: #00AA00;">&#123;</span></div></li>
<li style=""><div style="">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> !important<span style="color: #00AA00;">;</span></div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">list-style-type</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">decimal-leading-zero</span> !important<span style="color: #00AA00;">;</span></div></li>
<li style=""><div style="">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.5em</span> !important<span style="color: #00AA00;">;</span></div></li>
<li style="background-color: #f8f8f8;"><div style=""><span style="color: #00AA00;">&#125;</span></div></li>
</ol></div></div>
</div>

<p>修改 Sytle/shThemeDefault.css 文件，移除</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="css"><ol><li style=""><div style=""><span style="color: #6666ff;">.syntaxhighlighter</span> <span style="color: #00AA00;">&#123;</span></div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span> !important<span style="color: #00AA00;">;</span></div></li>
<li style=""><div style=""><span style="color: #00AA00;">&#125;</span></div></li>
</ol></div></div>
</div>

<p>OK，搞定，收工。</p>
 <img src="https://tofu.im/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1137" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>https://tofu.im/blog/2011/08/16/syntax-highlighter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add HTTPS support for GravatarLocalCache</title>
		<link>https://tofu.im/blog/2011/08/07/add-https-support-for-gravatarlocalcache/</link>
		<comments>https://tofu.im/blog/2011/08/07/add-https-support-for-gravatarlocalcache/#comments</comments>
		<pubDate>Sat, 06 Aug 2011 17:36:32 +0000</pubDate>
		<dc:creator>Csineneo</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[GravatarLocalCache]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">https://tofu.im/blog/?p=1036</guid>
		<description><![CDATA[Gravatar 為 HTTPS 站點返回的頭像是放在 https://secure.gravatar.com/ 下面的，而 GravatarLocalCache 插件則沒有此種情況，依然用 http://*.gravatar.com 來正則獲取頭像圖片文件名和圖片大小，這自然是取不到了，均返回空值，於是緩存頭像的文件名就變成了 -.jpg，於是所有的頭像都變成了最後一次抓取的圖片 =.=! 簡單的修改，編輯 GravatarLocalCache.php 找到 preg_match&#40;'&#124;http://[0-9a-z]{1,3}.gravatar.com/avatar/([^\?]+)\?s=([0-9]+)&#124;i', $_imageurl, $_img&#41;; 替換為 preg_match&#40;'&#124;https://secure.gravatar.com/avatar/([^\?]+)\?s=([0-9]+)&#124;i', $_imageurl, $_img&#41;; 搞定，懶得去判斷非 HTTPS，反正也用不到了，哈 :D]]></description>
			<content:encoded><![CDATA[<p>Gravatar 為 HTTPS 站點返回的頭像是放在 https://secure.gravatar.com/ 下面的，而 GravatarLocalCache 插件則沒有此種情況，依然用 http://*.gravatar.com 來正則獲取頭像圖片文件名和圖片大小，這自然是取不到了，均返回空值，於是緩存頭像的文件名就變成了 -.jpg，於是所有的頭像都變成了最後一次抓取的圖片 =.=!</p>
<p>簡單的修改，編輯 GravatarLocalCache.php<br />
找到</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="php"><ol><li style=""><div style=""><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'|http://[0-9a-z]{1,3}.gravatar.com/avatar/([^\?]+)\?s=([0-9]+)|i'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_imageurl</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_img</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
</ol></div></div>
</div>

<p>替換為</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="php"><ol><li style=""><div style=""><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'|https://secure.gravatar.com/avatar/([^\?]+)\?s=([0-9]+)|i'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_imageurl</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_img</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
</ol></div></div>
</div>

<p>搞定，懶得去判斷非 HTTPS，反正也用不到了，哈 :D</p>
 <img src="https://tofu.im/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1036" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>https://tofu.im/blog/2011/08/07/add-https-support-for-gravatarlocalcache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>新風格</title>
		<link>https://tofu.im/blog/2011/03/29/%e6%96%b0%e9%a2%a8%e6%a0%bc/</link>
		<comments>https://tofu.im/blog/2011/03/29/%e6%96%b0%e9%a2%a8%e6%a0%bc/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 22:55:34 +0000</pubDate>
		<dc:creator>Csineneo</dc:creator>
				<category><![CDATA[Opera]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[風格]]></category>

		<guid isPermaLink="false">http://blog.csineneo.com/?p=947</guid>
		<description><![CDATA[移植自 opera internal pages，用了 CSS3 border-image，推薦使用 Opera 11.10 Beta 或更新版本瀏覽。 習慣了在 linux 下 cp xxx/ yyy/ -r，在 Mac 下非得把參數緊跟命令 cp -r xxx/ yyy/，怨念 =.=!]]></description>
			<content:encoded><![CDATA[<p>移植自 opera internal pages，用了 CSS3 border-image，推薦使用 <a href="https://tofu.im/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5vcGVyYS5jb20v">Opera 11.10 Beta</a> 或更新版本瀏覽。</p>
<p>習慣了在 linux 下 cp xxx/ yyy/ -r，在 Mac 下非得把參數緊跟命令 cp -r xxx/ yyy/，怨念 =.=!</p>
 <img src="https://tofu.im/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=947" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>https://tofu.im/blog/2011/03/29/%e6%96%b0%e9%a2%a8%e6%a0%bc/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>好插件</title>
		<link>https://tofu.im/blog/2010/10/16/%e5%a5%bd%e6%8f%92%e4%bb%b6/</link>
		<comments>https://tofu.im/blog/2010/10/16/%e5%a5%bd%e6%8f%92%e4%bb%b6/#comments</comments>
		<pubDate>Sat, 16 Oct 2010 08:35:07 +0000</pubDate>
		<dc:creator>Csineneo</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[mtime]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://blog.csineneo.com/?p=776</guid>
		<description><![CDATA[Gravatar Local Cache，非大陸主機適用。 下面是附贈的： 203.110.168.225 img2.mtime.com 59.151.32.41 my.mtime.com 59.151.32.72 group.mtime.com 59.151.32.16 i.mtime.com 59.151.32.20 www.mtime.com]]></description>
			<content:encoded><![CDATA[<p><a href="https://tofu.im/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3dvcmRwcmVzcy5vcmcvZXh0ZW5kL3BsdWdpbnMvZ3JhdmF0YXJsb2NhbGNhY2hlLw==">Gravatar Local Cache</a>，非大陸主機適用。</p>
<p>下面是附贈的：</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="ini"><ol><li style=""><div style="">203.110.168.225 img2.mtime.com</div></li>
<li style="background-color: #f8f8f8;"><div style="">59.151.32.41 my.mtime.com</div></li>
<li style=""><div style="">59.151.32.72 group.mtime.com</div></li>
<li style="background-color: #f8f8f8;"><div style="">59.151.32.16 i.mtime.com</div></li>
<li style=""><div style="">59.151.32.20 www.mtime.com</div></li>
</ol></div></div>
</div>

 <img src="https://tofu.im/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=776" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>https://tofu.im/blog/2010/10/16/%e5%a5%bd%e6%8f%92%e4%bb%b6/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Mail2Commenter</title>
		<link>https://tofu.im/blog/2010/04/09/mail2commenter/</link>
		<comments>https://tofu.im/blog/2010/04/09/mail2commenter/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 11:10:04 +0000</pubDate>
		<dc:creator>Csineneo</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[碎語]]></category>

		<guid isPermaLink="false">http://blog.csineneo.com/?p=465</guid>
		<description><![CDATA[A.shun 同學推薦的插件，已經 475 天沒更新了 =.=! 插件功能還成，只是和 WP-UA 插件有衝突 =.=! 下午看了下，M2C 有句 $message = apply_filters&#40;'comment_text', $message&#41;; 而恰好 WP-UA 插件定義了這個 filter =.=! add_filter&#40;'comment_text', 'wp_useragent'&#41;; 且在執行完畢後移除了 remove_filter&#40;'comment_text', 'wp_useragent'&#41;; 不清楚這兩個插件的執行順序，總之是 M2C 用了一個被重新定義的或者不存在的 filter 來過濾內容，從而造成過濾結果為空 =.=! 其實 M2C 在 apply_filter() 之前已經定義了私有的 filter 且 $message 也能取到正常的評論內容 $filter = mailtocommenter_filter&#40;$commentdata,$name&#41;; $subject =$filter&#91;0&#93;; $message = $filter&#91;1&#93;; 所以看起來 apply_filters(&#8216;comment_text&#8217;, $message) 是無用的，乾脆刪掉，免得衝突 =.=! PS, 昨晚 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://tofu.im/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hLXNodW4uY29tLw==">A.shun</a> 同學推薦的插件，已經 475 天沒更新了 =.=!<br />
插件功能還成，只是和 WP-UA 插件有衝突 =.=!<br />
下午看了下，M2C 有句</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="php"><ol><li style=""><div style=""><span style="color: #000088;">$message</span> <span style="color: #339933;">=</span> apply_filters<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comment_text'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$message</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
</ol></div></div>
</div>

<p>而恰好 WP-UA 插件定義了這個 filter =.=!</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="php"><ol><li style=""><div style="">add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comment_text'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'wp_useragent'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
</ol></div></div>
</div>

<p>且在執行完畢後移除了</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="php"><ol><li style=""><div style="">remove_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comment_text'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'wp_useragent'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
</ol></div></div>
</div>

<p>不清楚這兩個插件的執行順序，總之是 M2C 用了一個被重新定義的或者不存在的 filter 來過濾內容，從而造成過濾結果為空 =.=!<br />
其實 M2C 在 apply_filter() 之前已經定義了私有的 filter 且 $message 也能取到正常的評論內容</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="php"><ol><li style=""><div style=""><span style="color: #000088;">$filter</span> <span style="color: #339933;">=</span> mailtocommenter_filter<span style="color: #009900;">&#40;</span><span style="color: #000088;">$commentdata</span><span style="color: #339933;">,</span><span style="color: #000088;">$name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="background-color: #f8f8f8;"><div style=""><span style="color: #000088;">$subject</span> <span style="color: #339933;">=</span><span style="color: #000088;">$filter</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></div></li>
<li style=""><div style=""><span style="color: #000088;">$message</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$filter</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></div></li>
</ol></div></div>
</div>

<p>所以看起來 apply_filters(&#8216;comment_text&#8217;, $message) 是無用的，乾脆刪掉，免得衝突 =.=!</p>
<p>PS, 昨晚 NOD32 更新之後造成 Opera 10.10 讀取郵件時卡死兩三秒，浪費我一上午的時間沒搞定終是關掉了實時防護 =.=!<br />
還好臨下班前 sysadmin 給了個補丁，據 sysadmin 說 10.5x 卡得尤甚 =.=!</p>
 <img src="https://tofu.im/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=465" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>https://tofu.im/blog/2010/04/09/mail2commenter/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Google Syntax Highlighter for WordPress</title>
		<link>https://tofu.im/blog/2010/04/03/google-syntax-highlighter-for-wordpress/</link>
		<comments>https://tofu.im/blog/2010/04/03/google-syntax-highlighter-for-wordpress/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 06:52:49 +0000</pubDate>
		<dc:creator>Csineneo</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[syntax highlighter]]></category>

		<guid isPermaLink="false">http://blog.csineneo.com/?p=372</guid>
		<description><![CDATA[昨晚试了几个语法高亮的插件，Google Syntax Highlighter for WordPress 还不错，除了有些小问题 =.=! 1, Google Syntax Highlighter for WordPress 的默认格式是 &#60;pre name=&#34;code&#34; class&#34;language&#34;&#62; &#160; &#160; code &#60;/pre&#62; 可惜 pre 没的 name 属性 =.=! 找到 ../Scripts/shCore.js 第 364 行 if&#40;_73&#91;i&#93;.getAttribute&#40;&#34;name&#34;&#41;==_71&#41;&#123; 修改为 if&#40;_73&#91;i&#93;.getAttribute&#40;&#34;lang&#34;&#41;==_71&#41;&#123; 在调用的时候使用下面的格式 &#60;pre lang=&#34;code&#34; class&#34;language&#34;&#62; &#160; &#160; code &#60;/pre&#62; 2, 另一个无语的地方是在 ../google_syntax_highlighter.php 中给 script 标签都加了 class 属性 =.=! &#60;script class=&#34;javascript&#34; src=&#34;&#60;?php [...]]]></description>
			<content:encoded><![CDATA[<p>昨晚试了几个语法高亮的插件，<a href="https://tofu.im/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3dvcmRwcmVzcy5vcmcvZXh0ZW5kL3BsdWdpbnMvZ29vZ2xlLXN5bnRheC1oaWdobGlnaHRlci8=">Google Syntax Highlighter for WordPress</a> 还不错，除了有些小问题 =.=!</p>
<p>1, <a href="https://tofu.im/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3dvcmRwcmVzcy5vcmcvZXh0ZW5kL3BsdWdpbnMvZ29vZ2xlLXN5bnRheC1oaWdobGlnaHRlci8=">Google Syntax Highlighter for WordPress</a> 的默认格式是</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="html4strict"><ol><li style=""><div style=""><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">pre</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;code&quot;</span> <span style="color: #000066;">class</span><span style="color: #ff0000;">&quot;language&quot;</span>&gt;</span></div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp; &nbsp; code</div></li>
<li style=""><div style=""><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">pre</span>&gt;</span></div></li>
</ol></div></div>
</div>

<p>可惜 pre 没的 name 属性 =.=!<br />
找到 ../Scripts/shCore.js 第 364 行</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="php"><ol><li style=""><div style=""><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>_73<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span>getAttribute<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span>_71<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li>
</ol></div></div>
</div>

<p>修改为</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="php"><ol><li style=""><div style=""><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>_73<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span>getAttribute<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;lang&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span>_71<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li>
</ol></div></div>
</div>

<p>在调用的时候使用下面的格式</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="html4strict"><ol><li style=""><div style=""><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">pre</span> <span style="color: #000066;">lang</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;code&quot;</span> <span style="color: #000066;">class</span><span style="color: #ff0000;">&quot;language&quot;</span>&gt;</span></div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp; &nbsp; code</div></li>
<li style=""><div style=""><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">pre</span>&gt;</span></div></li>
</ol></div></div>
</div>

<p>2, 另一个无语的地方是在 ../google_syntax_highlighter.php 中给 script 标签都加了 class 属性 =.=!</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="html4strict"><ol><li style=""><div style=""><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo $current_path; ?&gt;</span></span>Scripts/shCore.js&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></div></li>
<li style="background-color: #f8f8f8;"><div style=""><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo $current_path; ?&gt;</span></span>Scripts/shBrushCSharp.js&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></div></li>
<li style=""><div style=""><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo $current_path; ?&gt;</span></span>Scripts/shBrushPhp.js&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></div></li>
<li style="background-color: #f8f8f8;"><div style=""><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo $current_path; ?&gt;</span></span>Scripts/shBrushJScript.js&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></div></li>
<li style=""><div style=""><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo $current_path; ?&gt;</span></span>Scripts/shBrushJava.js&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></div></li>
<li style="background-color: #f8f8f8;"><div style=""><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo $current_path; ?&gt;</span></span>Scripts/shBrushVb.js&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></div></li>
<li style=""><div style=""><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo $current_path; ?&gt;</span></span>Scripts/shBrushSql.js&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></div></li>
<li style="background-color: #f8f8f8;"><div style=""><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo $current_path; ?&gt;</span></span>Scripts/shBrushXml.js&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></div></li>
<li style=""><div style=""><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo $current_path; ?&gt;</span></span>Scripts/shBrushDelphi.js&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></div></li>
<li style="background-color: #f8f8f8;"><div style=""><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo $current_path; ?&gt;</span></span>Scripts/shBrushPython.js&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></div></li>
<li style=""><div style=""><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo $current_path; ?&gt;</span></span>Scripts/shBrushRuby.js&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></div></li>
<li style="background-color: #f8f8f8;"><div style=""><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo $current_path; ?&gt;</span></span>Scripts/shBrushCss.js&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></div></li>
<li style=""><div style=""><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo $current_path; ?&gt;</span></span>Scripts/shBrushCpp.js&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></div></li>
<li style="background-color: #f8f8f8;"><div style=""><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript&quot;</span>&gt;</span></div></li>
<li style=""><div style="">dp.SyntaxHighlighter.ClipboardSwf = '<span style="color: #009900;">&lt;?php echo $current_path; ?&gt;</span>Scripts/clipboard.swf';</div></li>
<li style="background-color: #f8f8f8;"><div style="">dp.SyntaxHighlighter.HighlightAll('code');</div></li>
<li style=""><div style=""><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></div></li>
</ol></div></div>
</div>

<p>将所有的 class=&#8221;javascript&#8221; 都替换为</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="html4strict"><ol><li style=""><div style="">type=&quot;text/javascript&quot;</div></li>
</ol></div></div>
</div>

<p>然后再去 <a href="https://tofu.im/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3ZhbGlkYXRvci53My5vcmcv">W3C Validator</a> 就能看到绿色了 =.=!</p>
<p>3, 默认是显示控制栏的，不喜，去掉<br />
找到 ../Scripts/shCore.js 第 403 行</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="php"><ol><li style=""><div style="">_76<span style="color: #339933;">.</span>addControls<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>_61<span style="color: #339933;">==</span><span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>?<span style="color: #339933;">!</span>IsOptionSet<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;nocontrols&quot;</span><span style="color: #339933;">,</span>_7e<span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>_61<span style="color: #339933;">;</span></div></li>
</ol></div></div>
</div>

<p>修改为</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="php"><ol><li style=""><div style="">_76<span style="color: #339933;">.</span>addControls<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>_61<span style="color: #339933;">==</span><span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>?IsOptionSet<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;controls&quot;</span><span style="color: #339933;">,</span>_7e<span style="color: #009900;">&#41;</span><span style="color: #339933;">:!</span>_61<span style="color: #339933;">;</span></div></li>
</ol></div></div>
</div>

<p>在需要控制栏的时候可使用下面的格式</p>

<div class="bwp-syntax-block clearfix">
<div class="bwp-syntax-toolbar"></div>
<div class="bwp-syntax-wrapper clearfix bwp-syntax-advanced"><div class="html4strict"><ol><li style=""><div style=""><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">pre</span> <span style="color: #000066;">lang</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;code&quot;</span> <span style="color: #000066;">class</span><span style="color: #ff0000;">&quot;language:controls&quot;</span>&gt;</span></div></li>
<li style="background-color: #f8f8f8;"><div style="">&nbsp; &nbsp; code</div></li>
<li style=""><div style=""><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">pre</span>&gt;</span></div></li>
</ol></div></div>
</div>

 <img src="https://tofu.im/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=372" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>https://tofu.im/blog/2010/04/03/google-syntax-highlighter-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>測試 WordPress Blogging Widget</title>
		<link>https://tofu.im/blog/2009/01/22/wordpress-blogging-widget/</link>
		<comments>https://tofu.im/blog/2009/01/22/wordpress-blogging-widget/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 09:24:31 +0000</pubDate>
		<dc:creator>Csineneo</dc:creator>
				<category><![CDATA[Opera]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.csineneo.com/2009/01/%e6%b8%ac%e8%a9%a6-wordpress-blogging-widget/</guid>
		<description><![CDATA[WordPress Blogging Widget 是 Opera Widget Team 開發的一款使用 Blog API 直接發布日誌的 widget。 點此下載 支持 HTML，不支持 WYSIWYG，不能上傳圖片，簡約了點 =.=!]]></description>
			<content:encoded><![CDATA[<p>WordPress Blogging Widget 是 Opera Widget Team 開發的一款使用 Blog API 直接發布日誌的 widget。<br />
<a href="https://tofu.im/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3dpZGdldHMub3BlcmEuY29tL3dpZGdldC9kb3dubG9hZC84ODgxLzEuMy8/cGFnZV9pbmRleD1Ob25l">點此下載</a></p>
<p>支持 HTML，不支持 WYSIWYG，不能上傳圖片，簡約了點 =.=!</p>
<p><img src="http://tofu.im/blog/files/2009/01/2009-1-22_172654_csineneozion.png" alt="" title="2009-1-22_172654_csineneozion" width="640" height="372" class="aligncenter size-full wp-image-122" /></p>
<p><img src="http://tofu.im/blog/files/2009/01/2009-1-22_172700_csineneozion.png" alt="" title="2009-1-22_172700_csineneozion" width="628" height="362" class="aligncenter size-full wp-image-123" /></p>
<p><img src="http://tofu.im/blog/files/2009/01/2009-1-22_172707_csineneozion.png" alt="" title="2009-1-22_172707_csineneozion" width="631" height="369" class="aligncenter size-full wp-image-125" /></p>
<p><img src="http://tofu.im/blog/files/2009/01/2009-1-22_172715_csineneozion.png" alt="" title="2009-1-22_172715_csineneozion" width="626" height="371" class="aligncenter size-full wp-image-126" /></p>
<p><img src="http://tofu.im/blog/files/2009/01/2009-1-22_172603_csineneozion.png" alt="" title="2009-1-22_172603_csineneozion" width="645" height="360" class="aligncenter size-full wp-image-127" /></p>
 <img src="https://tofu.im/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=120" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>https://tofu.im/blog/2009/01/22/wordpress-blogging-widget/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

