Wednesday 26 November 2008

Xmas Come Early

My copy of the Processing book arrived from Waterstone's this morning, so I'm very much looking forward to delving in and exploring further. I've been reading snippets on Safari, and playing around with the Processing environment a little, but I've been holding back a concerted effort until the hardcopy hit my desk. I will start producing some stuff this week and get it posted.

Tuesday 4 November 2008

Syntax Highlighting Experiment

As this will likely involve posting a fair bit of Java code, it would be nice to have it nicely presented, syntax highlighted and line numbered. I've found a Blogger Widget here for the Google Code SyntaxHighlighter which seems to work OK. All you need to do is put your code between HTML <pre> tags and set the class to Java as follows:

<pre name="mycode" class="java">
...
</pre>

Lets try that out with some sample code:



public class massWriting {

private String test;
private int i;

// test method
public void test(int j) {
System.out.println(i*j);
}

}



Joy!