Please edit your post and wrap your code with code tags:


YOUR CODE HERE

to get highlighting and preserve formatting.

That's usually done by wrapping the code to be repeated in a while...