# Number list formatting followed by code formatting issue

On this question, I found that when I tried to edit the question and add a numbered list format, it sucked in the code formatting that followed, so I had to add Code: after the list to show the numbered list that I wanted to close it. This allowed the code formatting to start fresh.

• I don't know if this happens in any of the other Stack Sites so I posted it here rather than the Stack Exchange Meta – Malachi Oct 2 '13 at 15:53

This behaviour is the same on all Stack Exchange sites, and it is documented in the editing help. A list item continues until a line is reached that has no indent. This allows you to have multiple paragraphs, quoted text, and code blocks inside a list item.

If you want to follow a numbered list by a code block (without the code block becoming part of the list item), put an HTML comment after the list and before the code block, like this:

1. numbered list
1. numbered list

<!-- comment here -->

code block
code block

• thank you for that insight – Malachi Oct 2 '13 at 17:55