Tuesday, March 06, 2012

Adding Code Snippets to Blog

Since I have all the time now to play with my blog, I've been experimenting on how to add code snippets into my posts (since I'm a programmer... just comes naturally that I should be posting codes eventually).

However, to my surprise, this feature does not come out of the box for most blogging service. However, it is available as a mash-up.

Good old Google pointed me to this blog:
http://www.craftyfella.com/2010/01/syntax-highlighting-with-blogger-engine.html

The blog details how to integrate SyntaxHighlighter on your blogger template (or any blogging service theoretically).
http://alexgorbatchev.com/SyntaxHighlighter/about.html





public interface Abc {
void method1();
void method2();
}

No comments: