How to post code samples without it messing up

Every time I tried to post a code sample on these boards, it will always messes up.

I tried to use the help icons and I tried to use the pre/post tags but although it generally looks ok in the preview window its always a mess once posted.

Guidance please?

All you have to do is after you’re done typing, highlight the part that is code and click the 101010 button in the second group of buttons right above your text window.

Ok, I think I’ve figured out the issue. I need to use Firefox. In Firefox highlighting code and press 101010 does the right thing. In IE 9 I get a piece of text that says enter code here.