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.









沒有留言:

張貼留言

COVID-19 確診經歷紀實

原本以為真的是天選之人,就算先前家裡兩個小孩都確診都逃過了(可能有中獎但無症狀吧),不過就在2023年六月18日破解自認為天選之人的"心態",為什麼可以確認就是這天中獎的呢?因為在前都是居家上班,到人多的室內場所都會戴口罩,就剛好這天傍晚原本只想說要去附近的國...