Please edit your post and add code tags
type
** **[code]** **
before the code
type
** **[/code]** **
after the code
That will maintain formatting, get rid of the italics, makes it easier to read and easier to copy.
// Edit
And post complete code please, not partial code.