Featured Post

Passwordless ssh configuration

Simple step-by-step guide to config passwordless ssh access

Wednesday, June 15, 2011

Code Formatting in Blog

Example of code formatting in blog with google-code-prettify.

  1. /*
  2. * HelloWorld.java
  3. */
  4.  
  5. package hello.world;
  6.  
  7. public class HelloWorld {
  8.  
  9. public static void main (String[] args) {
  10.  
  11. System.out.println("Hello, World!");
  12. }
  13. }

And with Alex Gorbatchev's SyntaxHighlighter.

/*
 * HelloWorld.java
 */

package hello.world;

public class HelloWorld {

    public static void main (String[] args) {

        System.out.println("Hello, World!");
    }
}

Useful links