google-code-prettify
以後如果要編寫程式碼的話就比較方便了
安裝的方式很簡單
只要到設計=>修改html
找到</head>的前面加入
<link href="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css" rel="stylesheet" type="text/css"> <script src="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js" type="text/javascript">
懶得把檔案下載下來了 直接把include svn中的檔案
因為背景原本是黑色的
為了讓文字明顯一點
可以再用css去調整顏色
<style type="'text/css'">
.kwd { color: #4169E1; }
.tag { color: #4169E1; }
pre.prettyprint { padding: 2px; border: 1px solid #888; background-color: white; }
</style>
最後的結果
int main(){
printf("");
}
沒有留言:
張貼留言