2012/11/13

在Blogger裡面使用Syntax Highlight V3.0

Syntax Highlight V3.0後,Delphi, C++等語法並不能在Blogger正確被載入

Google後才找到這篇:

How To Add Syntax Highlighter (V3) To Blogger?



節錄內容如下:

  1. Select the theme of your highlighter,you can see demo of theme here.
  2. Then select the brushes which you want
  3. Click on the Get Code button
  4. Copy all the code from the text area
  5. Now go to your template
  6. Find for
  7. Add copied code just above it, tag in your template

這個網站很貼心的在底下寫了指令碼生成器,按照你需要的語法自動產生,之後再按上述的步驟修改Blogger範本,就可以開心使用囉!


後記,使用方式:
<pre class='brush:[brushname];'>
ADD THE PARSED CODE HERE
</pre>







一起 Highlight 吧!

沒有留言:

張貼留言