Remember to check the "with heading" box in the lower right corner. Surround code listings with <pre> and </pre>, and if you use < and > symbols you must say & lt ; and & gt ;
Other comments about type erasure available on my blog;
http://rotor.di.unipi.it/cisterni/
Antonio Cisternino (cisterni@di.unipi.it)