int sum=0;
for(int i=0;i<10;i++){
sum+=i;
}
System.out.println("total:"+sum);
Step1:Login blogger with your account, select 'Template', and click on 'Edit HTML' button.

Step2:
Copy the following two lines to the block inside <head></head>, and add onload='prettyPrint()' in <body> tag.
Step3: When post an article, switch to 'HTML' mode, and wrapper your code with <pre class="prettyprint"> and </pre>, you will see the effect!

Nevertheless, looks like wordpress has this function as built-in, and the appearance is quite decent and clear.
(btw, I have also found another tutorial in Chinese: http://blog.cookys.net/2012/10/blogger-google-code-prettify.html, the article was not too long ago)
