What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 134 Stack Exchange communities.

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

Proven:

  • **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

Disproven:

  • Cannot insert <kbd> characters
  • Cannot use #[text] to increase size
share|improve this question
    
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
3  
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
    
+1 to VitalyB. Line breaks are important –  aximili Oct 20 '11 at 23:47

4 Answers 4

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

commenting help

share|improve this answer
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
    
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

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`
*italic*
**bold**
***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.

share|improve this answer
1  
bold and italic? –  RedFilter Jan 12 '10 at 21:40
    
*asterisk* d –  RedFilter Jan 12 '10 at 21:41

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

share|improve this answer

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.

share|improve this answer

You must log in to answer this question.

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