2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ココログでSyntaxHighlighterを使う

Posted at

設定->基本情報->ブログのサブタイトル(キャッチフレーズ)に以下のコード追加すれば出来た。

<script type="text/javascript">
function cssChange( file ){
 var link = document.createElement('link');  
 with( link ) {     
href = file;
        type = 'text/css';
      rel = 'stylesheet'; 
 }       
 var head = document.getElementsByTagName('head');   head.item(0).appendChild(link);
}
cssChange("http://kjunurl.appspot.com/css/shCore.css");
cssChange("http://kjunurl.appspot.com/css/shThemeDefault.css");
</script>
<script type="text/javascript" src="http://kjunurl.appspot.com/js/shCore.js"></script>
<script type="text/javascript" src="http://kjunurl.appspot.com/js/shBrushJScript.js"></script>
<script type="text/javascript" src="http://kjunurl.appspot.com/js/shBrushCSharp.js"></script>
<script type="text/javascript" src="http://kjunurl.appspot.com/js/shBrushJava.js"></script>
<script type="text/javascript" src="http://kjunurl.appspot.com/js/shBrushPerl.js"></script>
<script type="text/javascript" src="http://kjunurl.appspot.com/js/shBrushVb.js"></script>
<script type="text/javascript" src="http://kjunurl.appspot.com/js/shBrushXml.js"></script>

<script type="text/javascript">
     SyntaxHighlighter.all()
</script>
2
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?