If you insert a stack snippet next to a code block, it gets the formatting of code.
Example:
font-family: tahoma, verdana, ubuntu, 'sans serif';
* {
font-family: tahoma, verdana, ubuntu, 'sans serif';
}
<p>
Unicorns I love them.
<br />Unicorns I love them.
<br />Unicorns I love them.
<br />Unicorns I love them.
<br />Uni uni unicorns, I love them!
</p>
In edit mode, this is somewhat different, but still formatting is screwed:
This is probably because the begin snippet
is in the same line as the preceding code block:
font-family: tahoma, verdana, ubuntu, 'sans serif';<!-- begin snippet: ...
But inserting the begin snippet
to the same line is done by the snippet editor, not the user.
Here is the bug misterManSam describes in the comments:
[1]:Link
and screws up the formatting. Looks like this:<!-- end snippet --> [1]: link