WP-Syntax

I added wp-syntax to help make the display of source code in this blog more legible, and colorful.

(defn fib [n]
   (if  (or (zero? n) (= n 1))
       1
      (+  (fib (dec n) )  (fib (- n 2)))))

Here is some Java:

    	ServerSocket serverSocket;
    	try {
    		serverSocket = new ServerSocket(this.listenPort);
    	} catch (IOException e) {
    	    System.out.printf("Could not listen on port: %d\n", this.listenPort);
    	    status = -1;
    	    return;
    	}

I had this working on my old blog, but just got around to getting it to work on the new one.

Reblog this post [with Zemanta]