Google Blogger 中加入 SyntaxHighlighter
詳細教學說明可至德瑞克的的Blogger
http://sharedderrick.blogspot.com/2010/10/google-blogger-syntaxhighlighter-3083.html
<!-- ====================================================================== SyntaxHighlighter START -->
<!-- 設定載入 Core 樣式 -->
<link href="https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shCoreEclipse.css" rel="stylesheet" type="text/css"/>
<!-- 風格樣式 依照個人喜愛來選擇 Theme -->
<link href="https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shThemeEclipse.css" rel="stylesheet" type="text/css"/>
<!-- 設定需要載入的程式語言檔案 -->
<script src='https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shBrushCss.js' type='text/javascript'/>
<script src='https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shBrushCSharp.js' type='text/javascript'/>
<script src='https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shBrushJava.js' type='text/javascript'/>
<script src='https://sites.google.com/site/erichuang223/home/syntaxhignhlighter/shBrushJScript.js' type='text/javascript'/>
<script src='https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shBrushPhp.js' type='text/javascript'/>
<script src='https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shBrushSql.js' type='text/javascript'/>
<script src='https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shBrushVb.js' type='text/javascript'/>
<script src='https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shBrushXml.js' type='text/javascript'/>
<!-- highlighter的應用程式 shCore.js -->
<script src="https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shCore.js" type="text/javascript"/>
<!-- 啟動 highlighter -->
<script type="text/javascript">
// 選用Blogger模式
SyntaxHighlighter.config.bloggerMode = true;
// 啟動
SyntaxHighlighter.all();
</script>
<!-- ====================================================================== SyntaxHighlighter END -->
http://sharedderrick.blogspot.com/2010/10/google-blogger-syntaxhighlighter-3083.html
<!-- ====================================================================== SyntaxHighlighter START -->
<!-- 設定載入 Core 樣式 -->
<link href="https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shCoreEclipse.css" rel="stylesheet" type="text/css"/>
<!-- 風格樣式 依照個人喜愛來選擇 Theme -->
<link href="https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shThemeEclipse.css" rel="stylesheet" type="text/css"/>
<!-- 設定需要載入的程式語言檔案 -->
<script src='https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shBrushCss.js' type='text/javascript'/>
<script src='https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shBrushCSharp.js' type='text/javascript'/>
<script src='https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shBrushJava.js' type='text/javascript'/>
<script src='https://sites.google.com/site/erichuang223/home/syntaxhignhlighter/shBrushJScript.js' type='text/javascript'/>
<script src='https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shBrushPhp.js' type='text/javascript'/>
<script src='https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shBrushSql.js' type='text/javascript'/>
<script src='https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shBrushVb.js' type='text/javascript'/>
<script src='https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shBrushXml.js' type='text/javascript'/>
<!-- highlighter的應用程式 shCore.js -->
<script src="https://sites.google.com/site/erichuang223/home/syntaxhighlighter/shCore.js" type="text/javascript"/>
<!-- 啟動 highlighter -->
<script type="text/javascript">
// 選用Blogger模式
SyntaxHighlighter.config.bloggerMode = true;
// 啟動
SyntaxHighlighter.all();
</script>
<!-- ====================================================================== SyntaxHighlighter END -->
留言
張貼留言