If you want to post code and have it be formatted correctly here on the forums, the trick is to put it in between backticks. A backtick is that button to the let of the numbers on your keyboard that looks like a funny single quote.
Try it out with <code> now