You can display a html code in the post by encoding the html

For eg, your text will become:
Code: 
<form action="submit.php">     <input type="text" id="textBox"> </form>
Search for online html encoder, eg: http://www.opinionatedgeek.com/dotne...de/encode.aspx

You can also use different css styles or add <pre> tags simply