2009年5月7日木曜日

SyntaxHighlighter 設定資料

実際テンプレート内に書き加えたソースは以下の通りです。
<head>

  <!-- ここから書き換え -->
  <script src='http://holmes21.up.seesaa.net/js/showhide.js' type='text/javascript'/>
  <link href='http://holmes21.up.seesaa.net/css/prestyle.css' rel='stylesheet' type='text/css'/>

  <link href='http://holmes21.up.seesaa.net/sh/shCore.css' rel='stylesheet' type='text/css'/>
  <link href='http://holmes21.up.seesaa.net/sh/shThemeDefault.css' rel='stylesheet' type='text/css'/>
  <script src='http://holmes21.up.seesaa.net/sh/shCore.js' type='text/javascript'/>
  <script src='http://holmes21.up.seesaa.net/sh/shLegacy.js' type='text/javascript'/>
  <script src='http://holmes21.up.seesaa.net/sh/shBrushVb.js' type='text/javascript'/>
  <script src='http://holmes21.up.seesaa.net/sh/shBrushCss.js' type='text/javascript'/>
  <script src='http://holmes21.up.seesaa.net/sh/shBrushPhp.js' type='text/javascript'/>
  <script src='http://holmes21.up.seesaa.net/sh/shBrushXml.js' type='text/javascript'/>
  <script src='http://holmes21.up.seesaa.net/sh/shBrushPlain.js' type='text/javascript'/>
  <script src='http://holmes21.up.seesaa.net/sh/shBrushJScript.js' type='text/javascript'/>
  <script src='http://holmes21.up.seesaa.net/sh/shBrushSql.js' type='text/javascript'/>
<script type='text/javascript'>
SyntaxHighlighter.config.clipboardSwf = &#39;http://holmes21.up.seesaa.net/sh/clipboard.swf&#39;;
SyntaxHighlighter.config.strings.copyToClipboardConfirmation = &#39;\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f\u3000\u3000\u3000&#39;;
SyntaxHighlighter.defaults[&#39;auto-links&#39;] = false;
</script>

<style type='text/css'>
.syntaxhighlighter div,
.syntaxhighlighter span,
.syntaxhighlighter code {
 font-size:12px!important;
 font-family: &quot;MS Pゴシック&quot;!important;
}
.syntaxhighlighter {
 padding:5px!important;
 background-color:#FFFFFF!important; 
 border-style:solid!important;
 border-color:#808080!important;
 border-width:1px!important;
}
</style>
  <!-- ここまで書き換え -->

・・・・</head>
SyntaxHighlighterを表示するために貼り付けるコードを作成するには、以下から変換ページを参照します。
SyntaxHighlighter2.0用 貼り付けコード作成 - SQLの窓と銀プログラマ

0 件のコメント:

コメントを投稿