파일 출처 : http://alexgorbatchev.com/wiki/SyntaxHighlighter:Download
블로그에서 프로그래밍 언어를 쉽게 보여주기위해서 사용하기 위한 방법이다.
<타이틀 >
<script type="text/javascript" src="./images/shCore.js"> </script>
<script type="text/javascript" src="./images/shBrushBash.js"> </script>
<script type="text/javascript" src="./images/shBrushCpp.js"> </script>
<script type="text/javascript" src="./images/shBrushCSharp.js"> </script>
<script type="text/javascript" src="./images/shBrushCss.js"> </script>
<script type="text/javascript" src="./images/shBrushDelphi.js"> </script>
<script type="text/javascript" src="./images/shBrushDiff.js"> </script>
<script type="text/javascript" src="./images/shBrushGroovy.js"> </script>
<script type="text/javascript" src="./images/shBrushJava.js"> </script>
<script type="text/javascript" src="./images/shBrushJScript.js"> </script>
<script type="text/javascript" src="./images/shBrushPhp.js"> </script>
<script type="text/javascript" src="./images/shBrushPlain.js"> </script>
<script type="text/javascript" src="./images/shBrushPython.js"> </script>
<script type="text/javascript" src="./images/shBrushRuby.js"> </script>
<script type="text/javascript" src="./images/shBrushScala.js"> </script>
<script type="text/javascript" src="./images/shBrushSql.js"> </script>
<script type="text/javascript" src="./images/shBrushVb.js"> </script>
<script type="text/javascript" src="./images/shBrushXml.js"> </script>
<link type="text/css" rel="stylesheet" href="./images/shCore.css"/>
<link type="text/css" rel="stylesheet" href="./images/shThemeDefault.css"/>
<헤드>
<script language="javascript" type="text/javascript">
SyntaxHighlighter.config.clipboardSwf = './images/clipboard.swf';
SyntaxHighlighter.all();
</script>
타이틀과 헤드 사이에 다음과 같은 스크립트를 넣어준다.
그다음
<pre class="brush: c-sharp;">
function test() : String
{
return 10;
}
</pre>
이렇게 넣어주면...
이렇게 된다.
function test() : String { return 10; }