본문 바로가기

Languange/Summary

syntaxhighlighter 사용법

* 설치는 건너뛰고

* 설치 되어 있다는 전제하에 표에 있는것을 가지고 사용합니다.

Brush nameBrush aliasesFile name
Bash/shell bash, shell shBrushBash.js
C# c-sharp, csharp shBrushCSharp.js
C++ cpp, c shBrushCpp.js
CSS css shBrushCss.js
Delphi delphi, pas, pascal shBrushDelphi.js
Diff diff, patch shBrushDiff.js
Groovy groovy shBrushGroovy.js
JavaScript js, jscript, javascript shBrushJScript.js
Java java shBrushJava.js
PHP php shBrushPhp.js
Plain Text plain, text shBrushPlain.js
Python py, python shBrushPython.js
Ruby rails, ror, ruby shBrushRuby.js
SQL sql shBrushSql.js
Visual Basic vb, vbnet shBrushVb.js
XML xml, xhtml, xslt, html, xhtml shBrushXml.js

<PRE class="brush: bash">
</PRE>
<PRE class="brush: c-sharp">
</PRE>
<PRE class="brush: c">
</PRE>
<PRE class="brush: text">
</PRE>
<PRE class="brush: sql">
</PRE>

태그를 이용하여 소스를 넣고 html형식으로 작성하시면 됩니다.