2011年8月10日 星期三

To decorate java code in google blogger with SyntaxHighlighter

  • Go to SyntaxHighlighter and download ( I used 3.0.83 release )
  • Unzip the file you download and  upload 
               the files(shCore.js、shBrushJava.js) in syntaxhighlighter_3.0.83\scripts               and (shCore.css、shCoreEclipse.css、shThemeEclipse.css) in syntaxhighlighter_3.0.83\styles
              to your web space ( On-line ) or https://sites.google.com/site/yours/

                                             I upload these files to my google site

 




                                              change the template in your blogger




add some html code as below

 
save the setting!

So , now you can decorate your code in blogger !
In editor of blogger , as following
<pre class="brush:java" name="code" >
      java code
</pre >

It is easy to use for html and javaScript and so on as above . See the configuration of SyntaxHighlighter for more advanced feature.









沒有留言:

張貼留言

AI 時代的影響(2026-10-24的心得)

  寫了半個世紀程式、 曾出版《Clean Code》教全世界工程師把程式碼寫乾淨的 Robert C. Martin(Uncle Bob), 最近公開表示他已經有超過 95% 的時間不再逐行閱讀 AI 寫的程式碼。 一位一生都在強調「程式碼是寫給人讀的」宗師級人物,何以敢做出...