<?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>可可熊的窝 &#187; ig_syntax_hilite</title>
	<atom:link href="http://cocobear.info/blog/tag/ig_syntax_hilite/feed/" rel="self" type="application/rss+xml" />
	<link>http://cocobear.info/blog</link>
	<description>K.I.S.S</description>
	<lastBuildDate>Sat, 10 Dec 2011 16:11:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>代码高亮插件&#8211;使用黑色背景</title>
		<link>http://cocobear.info/blog/2008/11/21/ig_syntax_hilite-use-black-background/</link>
		<comments>http://cocobear.info/blog/2008/11/21/ig_syntax_hilite-use-black-background/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 09:11:56 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ig_syntax_hilite]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/?p=398</guid>
		<description><![CDATA[ig_syntax_hilite这个代码高亮的插件默认使用的是白色背景，所以小林子同学说看不清楚代码，俺就试着把ig_syntax_hilite插件所有颜色代码全部反转了一下，例如： #ffffff黑色转换为#000000 ig_syntax_hilite使用的是geshe，在geshe目录下有很多与语言相关的php加亮文件，颜色代码就在这里生成，使用sed命令进行替换： 代码一 sed -r '/color *: *#[0-9a-f]{6};/{h;s/.*#([^;]+);.*/\1/;y/0123456789abcdef/fedcba9876543210/;G;s/(.*)\n(.*#)[^;]+(;.*)/\2\1\3/}' urfile 代码二 find ./ -iname abap.php &#124; { while read i;do sed -rn 'h;s/.*color[ \t]*[=:][ \t]*#([a-fA-F0-9]+).*/\1/;ta;p;d;:a y/0123456789abcdefABCDEF/fedcba9876543210543210/;G;s/(.*)\n(.*color[ \t]*[=:][ \t]*#)([a-fA-F0-9]+)(.*)/\2\1\4/p' $i &#62;/tmp/tmp__;echo fuck;\cp -f /tmp/tmp__ $i;echo fuck;rm -f /tmp/tmp__;done; } 上面的代码不是俺写的，具体可以查看CU论坛 俺什么时候也能把sed用到这种境界也就满足了:-) 上面简单的一句话脚本还是很有用的，上次俺花了一天的时间去修改主题的配色，其实如果要求不高的话用这脚本一下就搞定了:-) update:08-12-31 还得把一个颜色表示为单词的也换一下: sed -i &#8216;s/black/white/g&#8217; *]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2008/11/21/ig_syntax_hilite-use-black-background/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>折腾了一个代码高亮的插件</title>
		<link>http://cocobear.info/blog/2008/04/03/about-ig_syntax_hilite/</link>
		<comments>http://cocobear.info/blog/2008/04/03/about-ig_syntax_hilite/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 03:41:10 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[Not Language]]></category>
		<category><![CDATA[编程相关]]></category>
		<category><![CDATA[ig_syntax_hilite]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/?p=255</guid>
		<description><![CDATA[awk '/.*0020*./{print}' 00 &#62; 01 awk ' {print $18} ' 01 &#62; 02 cat 02 &#124; sort &#124; uniq &#62; 03 //g' 03 &#62; 04 sed -e '/.*\.\.\.\.\.\./d' 04 &#62; 05 sed -e 's/\.\.\.//g' 05 &#62; 06 sed -e 's/\b\.\b/\-\-\-\-/g' 06 &#62; 07 rm -f 01 02 03 04 05 06 awk '/.*0020*./{print}' 00 &#62; [...]]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2008/04/03/about-ig_syntax_hilite/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

