I always do it like this:
Identifier type of code file
I find it makes prettier headings than "normal" headings do, like
..especially with the nice little yellow background for these blocks on the main site, and I like that I can put bold and non-emphasized text on the same line.
A recent question contained a number of classes, all in the same code block - so in order to reduce the vertical scrolling I edited the post to separate the classes involved, and introduced my usual blockquote formatting. But then it was removed.
Fixed improper use of blockquotes
^^ note: proper use of blockquotes ;)
Since the OP posted a follow-up question and seemingly adopted my suggested formatting, should the blockquotes be edited out?
I will refrain from editing this formatting into other people's posts (I don't think I've done it before), but should I stop doing that with my own posts? Should my questions' formatting be edited to remove the improper use of blockquotes?