Used Code Tags. The icon for them is the pound sign (or hash tag). Just highlight all your code and then click that button in the Editor.
Conversely you can type code in between square brackets before the beginning of your code, and /code between square brackets at the end of your code.