シンタックスジェネレータを使ってブログに書く、ソースコードを綺麗に見せる方法を採用。
http://www.way2blogging.org/widget-generators/syntax-highlighter-scripts-generator
この中で、以下を選択
Bash/shell, java, plain text, HTML/XML/XSLT/XHTML
結果は次のとおり。
<link href="'http://alexgorbatchev.com/pub/sh/current/styles/shCore.css'" rel="'stylesheet'" type="'text/css'"/>
<link href="'http://alexgorbatchev.com/pub/sh/current/styles/shThemeDjango.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/shBrushBash.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/shBrushPlain.js'" type="'text/javascript'"></script>
<script src="'http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js'" type="'text/javascript'"></script>
<script language="javascript" type="text/javascript">
SyntaxHighlighter.config.bloggerMode = true;
SyntaxHighlighter.all();
</script>
gutter: false を class のなかにかくと行番号がきえる。
http://www.way2blogging.org/widget-generators/syntax-highlighter-scripts-generator
この中で、以下を選択
Bash/shell, java, plain text, HTML/XML/XSLT/XHTML
結果は次のとおり。
<link href="'http://alexgorbatchev.com/pub/sh/current/styles/shCore.css'" rel="'stylesheet'" type="'text/css'"/>
<link href="'http://alexgorbatchev.com/pub/sh/current/styles/shThemeDjango.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/shBrushBash.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/shBrushPlain.js'" type="'text/javascript'"></script>
<script src="'http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js'" type="'text/javascript'"></script>
<script language="javascript" type="text/javascript">
SyntaxHighlighter.config.bloggerMode = true;
SyntaxHighlighter.all();
</script>
gutter: false asdfasda asdfadfa asdf adsfafda asdfad faf
gutter: false
asdfasda asdfadfa asdf adsfafda asdfad faf
gutter: false を class のなかにかくと行番号がきえる。
asdfasda asdfadfa asdf adsfafda asdfad faf