What I've seemed to found out is that based on the format or the way the code is arranged before you paste into SE or SO is what detemines how the code looks in the question.
eg.
here is the code from a question I asked about coding in XNA
now here is the the exact same code copied pasted after I delete a few indents
Original copy and paste
original:
protected override void Update(GameTime gameTime)
{
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
this.Exit();
MouseState current_mouse = Mouse.GetState();
int mousep1 = current_mouse.X;
int mousep2 = current_mouse.Y;
if (current_mouse.X >= 0)
{
backcolor = Color.Green;
}
base.Update(gameTime);
}
Original with indents deleted after paste
protected override void Update(GameTime gameTime)
{
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
this.Exit();
MouseState current_mouse = Mouse.GetState();
int mousep1 = current_mouse.X;
int mousep2 = current_mouse.Y;
if (current_mouse.X >= 0)
{
backcolor = Color.Green;
}
base.Update(gameTime);
}
My conclusion is the website is trying to determine whether you pasted code or not based on the formatting of the input, and my formatting was not correct. My answer may be similar to what has already been said in the comments, but I just wanted to clarify for my self and for anyone else.