Skip to main content
1 of 3
Mathieu Guindon
  • 75.6k
  • 4
  • 99
  • 243

Blockquotes and formatting

In many, many, many, many or my recent questions, I've [mis]used blockquotes to separate code files.

I always do it like this:

Identifier type of code file

As in

Foo class

and

IFoo interface

I find it makes prettier headings than "normal" headings do, like

###Foo class

and

###IFoo interface

..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?

Mathieu Guindon
  • 75.6k
  • 4
  • 99
  • 243