找了好几个代码高亮插件,还是code colorer这个插件好。
测试下:PHP语言:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <?php $ori_qs = $_SERVER['QUERY_STRING']; $pattern = '/[^;]+;[^:]+://[^/]+(/[^?]*)(?:?(.*))?/i'; preg_match($pattern, $ori_qs, $matches); $_SERVER['PATH_INFO'] = $matches[1] . '?' . $matches[2]; $_SERVER['REQUEST_URI'] = $_SERVER['PATH_INFO']; $query_args = explode('&', $matches[2]); unset($_GET); foreach ($query_args as $arg) { $the_arg = explode('=', $arg); $_GET[$the_arg[0]] = $the_arg[1]; } include('index.php'); ?> |
1 | echo “This is php code”; |
HTML语言:
1 2 3 4 | <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> |
Related posts:
- WordPress在Windows- iis主机中实现完美固定链接
- Test the wordpress for android application
- 修改FEED模板友好同步WORDPRESS评论到新浪微博
- wordpress同步指定文章的评论到新浪微博
- CMP调用百度WAP搜索图片插件
- 完美同步wordpress博客文章和评论到所有微博
- Words2Weibo友好同步WORDPRESS博客日志和评论到新浪微博
- wordpress导入数据丢失-备份不应该只是简单的数据导入导出
- WordPress分类及标签数据丢失如何找回
- 修改pluggable.php实现wordpress评论友好短信通知
this is a test for tweet push
[回复]
New comment summaries
[回复]
觉得你的站不错!!!
[回复]
Posted at May 21st, 2010 19:03
@知道, 多谢夸奖。你网站内容好丰富。
[回复]
牛逼
[回复]
Posted at May 21st, 2010 19:05
@coo, 嗯,CODE COLORER很NB
[回复]