You have color tags and other tags inside the code block which is not recommended. Switch to the standard editor and you can see the color tag mess.
I would not recommend using vBulletins wysiwyg editor when pasting code. You can change the default editor setting under Your username on the menu bar, then "User Control Panel", then "Edit Options" and scroll down and the setting is near the bottom.