Posting a Code

Is there a “neat” way to post code within a post …

The code button next to the image button in the header when writing a post.