James, the correct way to put code tags around your code is...

[ code ]
This is my code
[ /code ]

...but without the spaces between the brackets and "code" or "/code".