4

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?

0

1 Answer 1

6

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)

0

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