code colorer wordpress 代码高亮插件测试

找了好几个代码高亮插件,还是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:

  1. WordPress在Windows- iis主机中实现完美固定链接
  2. Test the wordpress for android application
  3. 修改FEED模板友好同步WORDPRESS评论到新浪微博
  4. wordpress同步指定文章的评论到新浪微博
  5. CMP调用百度WAP搜索图片插件
  6. 完美同步wordpress博客文章和评论到所有微博
  7. Words2Weibo友好同步WORDPRESS博客日志和评论到新浪微博
  8. wordpress导入数据丢失-备份不应该只是简单的数据导入导出
  9. WordPress分类及标签数据丢失如何找回
  10. 修改pluggable.php实现wordpress评论友好短信通知

4 Comments

  1. Jungle
    Posted 2010/05/16 at 20:18 | Permalink

    this is a test for tweet push

    [回复]

  2. Jungle
    Posted 2010/05/16 at 20:24 | Permalink

    New comment summaries

    [回复]

  3. Posted 2010/05/17 at 23:43 | Permalink

    觉得你的站不错!!!

    [回复]

    Jungle
    Posted at

    @知道, 多谢夸奖。你网站内容好丰富。

    [回复]

  4. Posted 2010/05/21 at 01:45 | Permalink

    牛逼

    [回复]

    Jungle
    Posted at

    @coo, 嗯,CODE COLORER很NB

    [回复]

Post a Comment

Your email is never shared.