代码高亮显示插件syntaxhighlighte

@2010/05/30 星期日 10:14:53

1.首先是打开Google Reader看到摩摩诘童鞋终于在一年之后更新了digglife,

见这里:Ubuntu开机自动禁用无线网络,感觉是大家都沉寂了好久,

没有了饭否人都不知道跑哪儿去了,虽然我整天挂着ssh,可是也越来越少的到twitter吐槽,

不是说生活越来越忙碌,也不是其它什么原因,只是没有了当初的感觉而已。

2.参考了下digglife所使用的代码高亮显示插件:syntaxhighlighte,

下载地址:http://wordpress.org/extend/plugins/syntaxhighlighter

效果如下:

	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
	    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	    <title>PHP Code Example</title>
	</head>
	<body>
	    <h1>PHP Code Example</h1>
	    <p><?php echo 'Hello World!'; ?></p>
	    <p>This line is highlighted.</p>
	    <div class="foobar">
	        This    is  an
	        example of  smart
	        tabs.
	    </div>
	    <p><a href="http://wordpress.org/">WordPress</a></p>
	</body>
	</html>

2 Responses to “代码高亮显示插件syntaxhighlighte”

  1. 摩摩诘 说道:

    这插件效果处理得不错,就是脚本跑得有点慢.

Leave a Reply