Here's a simple block:

[HTML_REMOVED]

This should be a code block, though:

    <div>
        foo
    </div>

As should this:

    <div>foo</div>

Now, nested:

[HTML_REMOVED]

This should just be an HTML comment:

[HTML_REMOVED]

Multiline:

[HTML_REMOVED]

Code block:

    <!-- Comment -->

Just plain comment, with trailing spaces on the line:

[HTML_REMOVED]

Code:

    <hr />

Hr's:

[HTML_REMOVED]

[HTML_REMOVED]

[HTML_REMOVED]

[HTML_REMOVED]

[HTML_REMOVED]

[HTML_REMOVED]

[HTML_REMOVED]

[HTML_REMOVED]

[HTML_REMOVED]

[HTML_REMOVED]