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?

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.


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)

  • Great explain, thank you – genesis Jul 12 '11 at 5:42

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