잡담소장소

SyntaxHighlighter Test 본문

Study ;3

SyntaxHighlighter Test

알 수 없는 사용자 2012. 7. 20. 10:46
function test()
{
 $a = 0;
 $b = a;
 $c = $a.$b;
}

 

드디어 설치한 SyntaxHighlighter! :)

이제 나도 코드를 깔끔하게 ㅠㅠ

 

 

1. 설치

설정 - 스킨 - HTML/CSS 편집에 들어가서 </body>와 </html> 사이에 아래 코드 추가


<link rel='stylesheet' type='text/css' href='http://alexgorbatchev.com/pub/sh/current/styles/shCore.css' />
<link rel='stylesheet' type='text/css' href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.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/shBrushXml.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/shBrushPhp.js' type='text/javascript'></script>
<script type="text/javascript">
SyntaxHighlighter.all();
</script>



2. 사용

<pre class="brush: 브러시 타입"> ...Code... </pre>

* xml, cpp, php 만 사용가능. 그 외의 언어는 따로 링크 찾아보세여..

 

출처: http://lolisia.tistory.com/152 

반응형

'Study ;3' 카테고리의 다른 글

유용할 것 같은 jQuery Plugin  (0) 2013.01.09
What is Node.js ?  (0) 2012.12.04
기밀태씨 강의  (0) 2012.06.05
리마인드용 개발 이야기  (0) 2012.05.08
프로시저 isqlplus에서 실행하는 방법  (0) 2012.04.18
Comments