code prettify

Description

This plugin using google-code-prettify to highlight source code in your posts.

Usage

    1. Install and activate the plugin
    2. Use <pre><code> and </code></pre> tag around the code,and post it

eg:


<pre><code>
class BigBang {
    function blah() {
        echo "Hello world";
    }
}
</code></pre>

Effect:


class BigBang {
    function blah() {
        echo "Hello world";
    }
}

ChangeLog

version 0.2

  • change tag to <pre><code>

version 0.1

  • initial add

Download

https://github.com/volca/code-prettify

code-prettify at wordpress

1 条评论 »

  1. Xidorn's Blog 于 2012-11-18 @ 12:33:16 留言

    不错,感谢分享。我现在正在找这个插件呢。

RSS 为此帖反馈评论

留条评论