爱极笔记: Blogger添加语法高亮: 该Blogger之前曾经添加过语法高亮,今天发现了一个Blogger高亮脚本生成器,快捷好用。试用了一下,推荐。 高亮脚本生成器地址: http://www.way2blogging.org/widget-generators/syntax-highlighter-script...

https://raw.github.com/isagalaev/highlight.js/master/src/highlight.js
https://raw.github.com/isagalaev/highlight.js/master/src/styles/default.css

1
2
3
<link rel="stylesheet" href="styles/default.css"\>  
<script src="highlight.pack.js"\></script>  
<script>hljs.initHighlightingOnLoad();</script>
1
测试代码   

public class Test{
public static void main(String[] args){
System.out.println(“hello-world”);
}
}