<link href='http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css' type='text/css' rel='stylesheet' /> <script type='text/javascript' src='http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js'></script>2. 在blogger template中,修改<body為
<body onload='prettyPrint();'>3. 用法(須將"<"轉換為"< ">"轉換為">")
<pre class="prettyprint"> your_code ... </pre>
沒有留言:
張貼留言