竹磬网-邵珠庆の日记 生命只有一次,你可以用它来做些更多伟大的事情–Make the world a little better and easier

287月/114

自动语法高亮 google-code-prettify

地址:http://code.google.com/p/google-code-prettify/

特点是无须指定语言!

使用方法:
1. 包含脚本和样式表

<link href="prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="prettify.js"></script>

2. 添加 onload="prettyPrint()" 到你的文件的 body 标签中.
3. 在 <pre class="prettypring">...</pre><code class="prettypring">...</code> 中间放上代码片段,它就会自动被美化了.

喜欢这个文章吗?

考虑订阅我们的RSS Feed吧!

发布在 邵珠庆

评论 (4) 引用 (0)
  1. If I cmomnuiacetd I could thank you enough for this, I’d be lying.

  2. Redaing posts like this make surfing such a pleasure

  3. I am vacation and that i usually buy games while in the United kingdom to economize. Obviously,I’m fortunate enough will deal with different vocabulary.


Leave a comment

还没有引用.