Thursday, September 13, 2012

highlight scripts/codes in blog (just for Blogger)

I searched online, and found a good code-highlighter project called "SyntaxHighlighter"

There's an easy way to do it, just by copying code provided here:
http://www.cyberack.com/2007/07/adding-syntax-highlighter-to-blogger.html

However, this only supports a few brushes (means support highlighting certain type of code).

All the brushes are shown here
http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/

And all brushes to download plus brushes that are being worked on:
http://www.undermyhat.org/blog/2009/09/list-of-brushes-syntaxhighligher/

However, this does not support R language. Hope it will get better soon!

No comments:

Post a Comment

How to rename files in linux (regular expression)

Here is a very useful link to this question, just need to download their perl script and then use perl regular expression to rename file!! ...