[SOLVED]How to Paste formatted code into forum post?

Some people have posted code snippets with nice formatting. How is it done?

This symbol in the editor will insert a pair of code tags

/Tommy

Thanks!