2011-10-15 3 views

답변

0

당신이 > </머리 > 태그과 같이 당신의 < 머리 내에서 shBrushCss.js 라이브러리를 참조하고 있는지 확인하십시오

<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js' type='text/javascript'/> 

또한, http://oneqonea.blogspot.com/2012/04/how-do-i-add-syntax-highlighting-to-my.html

에서이 답변의 소스를 체크 아웃 할 수 그것의 정말 쉬운 (나는 커버는 몇 가지 간단한 단계에서 위에서 아래로의 Blogger 블로그에 구문 강조를 추가하는 것을 쓴 블로그를 따르십시오 스크린 샷).

0

블로거 블로그를 실행하는 경우 아래 설명 된 단계에 따라 SyntaxHighlighter를 통합 할 수 있습니다.

나는 정중하게 설명했습니다

<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/shThemeDefault.css' rel='stylesheet' type='text/css'/> 
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js'/> 
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js'/> 
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js'/> 
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPhp.js'/> 
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPython.js'/> 
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js'/> 
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js'/> 
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushBash.js'/> 
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPlain.js'/> 
<script> 
    SyntaxHighlighter.config.bloggerMode = true; 
    SyntaxHighlighter.config.clipboardSwf = "http://alexgorbatchev.com/pub/sh/current/scripts/clipboard.swf"; 
    SyntaxHighlighter.all(); 
</script> 

다음 난 내 기사에 쓴 :

<pre class="brush:bash"> 
ls -al | grep .jpg 
</pre> 

당신은 예를 수 How to Add Syntax Highlighter to Blogger

0

내가이 템플릿 헤드 섹션의 마지막에 쓴 here 참조.