Google後才找到這篇:
How To Add Syntax Highlighter (V3) To Blogger?
節錄內容如下:
- Select the theme of your highlighter,you can see demo of theme here.
- Then select the brushes which you want
- Click on the Get Code button
- Copy all the code from the text area
- Now go to your template
- Find for
- Add copied code just above it, tag in your template
這個網站很貼心的在底下寫了指令碼生成器,按照你需要的語法自動產生,之後再按上述的步驟修改Blogger範本,就可以開心使用囉!
後記,使用方式:
<pre class='brush:[brushname];'> ADD THE PARSED CODE HERE </pre>
一起 Highlight 吧! |
沒有留言:
張貼留言