Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

I noticed that comments do not support formatting and line breaks like we have in posts.

The markdown help doesn't seem to apply to the comments, so I think it is a bug.

share|improve this question

migrated from stackoverflow.com May 19 '10 at 9:44

This question came from our site for professional and enthusiast programmers.

    
    
possible duplicate of What markdown is allowed in comments? – perbert May 19 '10 at 14:00
up vote 12 down vote accepted

Comments have no line breaks and generally no block-level formatting (such as extended blocks of code).

You can, however, use some of the same formatting that applies to normal posts:

  • Italics *Italics* Also _Also_
  • Bold **Bold** Also __Also__
  • ***Bold italics are not allowed*** ***Bold italics are not allowed***
  • Code `Code`
  • links [links](http://meta.stackoverflow.com/ "Meta")

For a more complete explanation, you can see the relevant part of the FAQ.

share|improve this answer
    
Note to add: The comment syntax is superficially similar to the one used in posts but differs in a number of headachy ways. You can hope never to encounter those cases, though :-) – Joey May 19 '10 at 9:47
4  
Its sad whe cannot have even line breaks in comments :S – ase69s May 19 '10 at 9:52
    
@Johannes Rössel: Wow, same thing happened to me: meta.stackexchange.com/questions/50447 – Konrad Rudolph May 19 '10 at 9:54
15  
@ase69s, _____________________________________________________________________________________________ Yeah, _____________________________________________________________________________________________ You _____________________________________________________________________________________________ cannot _____________________________________________________________________________________________ have _____________________________________________________________________________________________ it, unless you overflow it :) – YOU May 19 '10 at 10:47
4  
@S.Mark: ̶T̶h̶a̶t̶s ̶g̶r̶e̶a̶t ;-) – Andy E May 19 '10 at 13:14
4  
And I would hate to read comments if they all looked like that!!!! – The Unhandled Exception May 19 '10 at 13:16
2  
@SMark stop breaking comments! Damn kinds with your fancy overflows!! – alex May 19 '10 at 14:15
    
is this ‌​ really ................................................................................‌​............. the              only _____________________________________________________________________________________________ way? – n611x007 Apr 22 '15 at 11:03

(Don't forget inline links!)

We do allow very limited markdown in comments now:

  • * and _ for bold, italic
  • `` for code blocks
  • [example](http://example.com "merely an example")

No HTML, just Markdown in comments, please!

Allow HTML tags in comments

share|improve this answer
1  
sorry but why not line-breaks? via double space? – n611x007 Apr 22 '15 at 11:12

Some of the formatting works in comments. Notably inline links, *emphasis*, **strong emphasis** and `code`.

This is all I could find in reference: a blog post about the changes.

share|improve this answer

You must log in to answer this question.

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