SyntaxHighlighter

CATEGORYjavascript
バージョンアップついでに、本家がホスティングしてくれているのを使ってみる。
http://alexgorbatchev.com/SyntaxHighlighter/hosting.html
<link href="http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css" rel="stylesheet" type="text/css" />
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js" type="text/javascript"></script>
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shAutoloader.js" type="text/javascript"></script>

<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushBash.js"    type="text/javascript"></script>
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js"     type="text/javascript"></script>
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js"     type="text/javascript"></script>
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js"    type="text/javascript"></script>
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js" type="text/javascript"></script>
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPerl.js"    type="text/javascript"></script>
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPhp.js"     type="text/javascript"></script>
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPlain.js"   type="text/javascript"></script>
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushRuby.js"    type="text/javascript"></script>
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js"     type="text/javascript"></script>
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushVb.js"      type="text/javascript"></script>
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js"     type="text/javascript"></script>

<script type="text/javascript">
SyntaxHighlighter.defaults['gutter'] = false
SyntaxHighlighter.defaults['light'] = true
SyntaxHighlighter.all();
</script>

AutoLoader を使おうと思ったんだが、うまく動かん。
http://jump-up.info/jquery/syntaxhighlighter.html
http://saturday-dory-fever.blogspot.jp/2011/07/syntaxhighlighter-with-autoloader.html
http://www.youngflavor.net/2012/04/81/
関連記事
スポンサーサイト

javascript

0 Comments

Leave a comment