Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

Possible Duplicate:
Why is a code block not properly formatted when placed immediately after a list item?

Why did this line of code:

} elseif(preg_match("/(mysql_num_rows()|mysql_fetch_array()|Error Occured While Processing Request|error in your sql syntax|mysql_fetch_row()|VBScript Runtime|BOF or EOF|mysql_fetch_object()|Invalid Querystring/i", Connect_Host(str_replace("=", "='", $sites[2][$a]))))) {

not format correctly here on Stack Overflow, but work correctly here on Meta?

share|improve this question

marked as duplicate by Jeff Atwood Jul 12 '11 at 10:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 6 down vote accepted

Because it was included immediately following a bulleted list, the markdown parser made it part of that bulleted list. Notice how it was indented and how it lines up with the bulleted text:


In order to indicate that code blocks in a bulleted list should be formatted as code, you need to indent lines with eight (8) spaces, rather than the usual four (4). After you do that, everything works fine.

And of course, the reason it worked fine with only 4 spaces here on Meta is because there are no bullets in your question.

(See also: Code block is not properly formatted when placed immediately after a list item)

share|improve this answer
Great explain, thank you – genesis Jul 12 '11 at 5:42

Not the answer you're looking for? Browse other questions tagged .