Friday, September 9, 2011

How To Post Source Code In A Blog

Sourcecode Formatter

http://codeformatter.blogspot.com/2009/06/about-code-formatter.html

The result looks like this, optional you can format it with line numbers but for the reader there is no easy mechanism to remove them if he wants the lines in his project.

 public class Robot {  
      private Gun gun = new Gun();  
      public void killAllHumans() {  
           gun.fire();  
      }  
 }  

No comments:

Post a Comment