2012年6月15日 星期五

美化文章顯示的code

每次換主題
有可能會把我設定的syntaxhighlighter
都給移除
所以哩
我把東西備分一下
以備不時之需
=========================================================================
1.打開blog ->設計 ->html

2.找尋</head>

3.把下面這幾行貼到</head>之前 就可以顯示哩
<link href='https://sites.google.com/site/evonda/syntaxhighlighter_3-0-83/styles/shCore.css' rel='stylesheet' type='text/css'/>
<link href='https://sites.google.com/site/evonda/syntaxhighlighter_3-0-83/styles/shThemeRDark.css' rel='stylesheet' type='text/css'/>

<!-- 設定需要載入的核心檔案 shCore.js -->
<script src='https://sites.google.com/site/evonda/syntaxhighlighter_3-0-83/scripts/shCore.js' type='text/javascript'/>

<!-- 設定需要載入的程式語言檔案  -->
<script src='https://sites.google.com/site/evonda/syntaxhighlighter_3-0-83/scripts/shBrushCSharp.js' type='text/javascript'/>
<script src='https://sites.google.com/site/evonda/syntaxhighlighter_3-0-83/scripts/shBrushJScript.js' type='text/javascript'/>
<script src='https://sites.google.com/site/evonda/syntaxhighlighter_3-0-83/scripts/' type='text/javascript'/>
<script src='https://sites.google.com/site/evonda/syntaxhighlighter_3-0-83/scripts/shBrushVb.js' type='text/javascript'/>
<script src='https://sites.google.com/site/evonda/syntaxhighlighter_3-0-83/scripts/shBrushXml.js' type='text/javascript'/>
<script src='https://sites.google.com/site/evonda/syntaxhighlighter_3-0-83/scripts/shBrushAS3.js' type='text/javascript'/>
<script src='https://sites.google.com/site/evonda/syntaxhighlighter_3-0-83/scripts/shBrushXml.js' type='text/javascript'/>

<!-- 設定啟用 highlighter   -->
<script type='text/javascript'>
SyntaxHighlighter.all()
</script>

沒有留言: