参考自: http://www.cnblogs.com/Wayou/p/highlight_code_with_sublimetext_style.html
step1: 安装 sublimehighlight 插件
- sublime中添加repository: ctrl+shift+P --> add repository(url为:https://github.com/n1k0/SublimeHighlight/tree/python3)
- Install Package: sublimehighlight
step2: 设置主题
- preferences=>package settings=>sublimehighlight=>settings-user中加入如下代码, 再随便加点儿阴影和圆角就非常漂亮了,如下:
{ "theme":"monokai" }
step3: 写代码并转化成HTML格式, 复制其中代码片段的 div , 粘贴到博客园中就行了.
- edit=>highlight=>convert to html
原文:http://www.cnblogs.com/roger9567/p/5059563.html