What special formatting tricks can be done in the comments now?


  • **text** or __text__ = Bolding = text
  • *text* or _text_ = Italics = text
  • `text` = Code Formatting = text
  • [example](http://example.com "title") Inline links with title and text
  • http://example.com plain old links


  • Cannot insert <kbd> (i.e. F12) characters
  • Cannot use #[text] to increase size
  • Really?
    – perbert
    Apr 1 '10 at 14:44
  • 1
    No bold italic. ([No links in parentheses](www.google.com))
    – badp
    Jul 18 '10 at 12:43
  • 1
    Whoops! If you put text before and after it, you can do bold italic -- just not bold italic alone.
    – badp
    Jul 18 '10 at 12:49
  • 10
    Multiple code lines work?? string hexString = string.Format("{0:X}", -5); long hexValue = long.Parse(hexString, NumberStyles.AllowHexSpecifier);
    – VitalyB
    Sep 10 '10 at 14:27
  • 2
    +1 to VitalyB. Line breaks are important
    – Aximili
    Oct 20 '11 at 23:47
  • 1
    And you can escape characters: *this isn't italic*, **this isn't bold**, `this isn't codified`.
    – Daniel
    Feb 18 '16 at 2:52
  • 2
    Yeah guys, will you be adding multiple code lines in comments? That would be great since some times you need to edit/update the OP for add a piece of code
    – ReynierPM
    Oct 18 '16 at 15:52
  • example.com Apr 26 '17 at 16:32

click the help link under [add comment] to see a summary of the available formatting options.

commenting help

  • 3
    This is good, but might be clearer if there isn't a line break just after the ] of [link].
    – Richard
    Feb 2 '11 at 7:39
  • 1
    There is now even a "Learn more..." link to a help page with more information (including some shorthand links not yet mentioned here).
    – Fr33dan
    Sep 24 '13 at 13:53
  • @jeff-atwood does @ work to notify commenters?... at least, if it does, for a while now there has been no link to the user's profile as it used to be before whatever change was made... also, there is no special styling to identify the person as, well, a person (as opposed to just characters after a @...) Nov 26 '19 at 22:38
  • @Richard, I'm writing this 8 years and 9 months after your comment, and the line break is still there!... Nov 26 '19 at 22:40

The only bad thing is that it counts the markup toward the number of characters. So bolding something means you can actually enter 4 characters less. Of course, this effectively makes the minimum comment length 11.


This is something that is only very recent - see http://www.codinghorror.com/blog/archives/001285.html for more info.


This was new as of 2009-7-3, there is a comment by Jeff under this answer which was posted on 2009-6-29:

I would really like some of the basic markdown stuff be added, for example

`code highlight`
***bold italic***
hey look! italic and bold and some escaped *code* sample – Jeff Atwood♦

I also mentioned it on the 30th:

At least, I would want bold and italic to work.

As for syntax highlighting, you don't get that for simple inlined code sections, so why would you need it in comments.

Which means it had to have been implemented between 2009-6-30 and 2009-7-3.

  • 1
    bold and italic?
    – RedFilter
    Jan 12 '10 at 21:40
  • *asterisk* d
    – RedFilter
    Jan 12 '10 at 21:41

This micro-ing of the MD format is annoying, because

  • it does not allow
  • the list-bullets,
  • in the comments. :-/
  • 1
    If you want to put a bullet list in a comment, that means you don't know what comments are for
    – user315433
    Sep 18 '17 at 11:50
  • 1
    "Leave constructive criticism" and "fundamental change" is exactly my point: The original answer had bullets, and to be 'constructive' and to show my point, I need bullets too.
    – Franta
    Sep 18 '17 at 14:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .