code colorer wordpress 代码高亮插件测试

找了好几个代码高亮插件,还是code colorer这个插件好。
测试下:PHP语言:

 
<?php
$ori_qs = $_SERVER&#91;'QUERY_STRING'&#93;;
$pattern = '/&#91;^;&#93;+;&#91;^:&#93;+://&#91;^/&#93;+(/&#91;^?&#93;*)(?:?(.*))?/i';
preg_match($pattern, $ori_qs, $matches);
$_SERVER&#91;'PATH_INFO'&#93;    = $matches&#91;1&#93; . '?' . $matches&#91;2&#93;;
$_SERVER&#91;'REQUEST_URI'&#93;  = $_SERVER&#91;'PATH_INFO'&#93;;
$query_args              = explode('&', $matches&#91;2&#93;);
unset($_GET);
foreach ($query_args as $arg)
{
    $the_arg = explode('=', $arg);
    $_GET&#91;$the_arg&#91;0&#93;&#93; = $the_arg&#91;1&#93;;
}
include('index.php');
?>
 
echo “This is php code”;

HTML语言:

 
<div id="access">
		<div class="skip-link"><a href="#content" title="Skip to content">Skip to content</a></div>
		<div id="menu"><ul><li class="page_item page-item-1000"><a href="http://little8.com/%e8%92%8b%e6%b1%9f%e6%b5%b7/" title="关于">关于</a></li><li class="page_item page-item-773"><a href="http://little8.com/archives/" title="归档">归档</a></li><li class="page_item page-item-774"><a href="http://little8.com/links/" title="链接">链接</a></li><li class="page_item page-item-826"><a href="http://little8.com/guest-book/" title="留言本">留言本</a></li><li class="page_item page-item-830"><a href="http://little8.com/mirrors/" title="镜像点">镜像点</a></li></ul></div>
	</div>

6 Comments

Add a Comment

Your email address will not be published.