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

Possible Duplicate:
How do comments work?
Stack Overflow comments don’t have formatting tags or line breaks?

I've been struggling for some time with adding line breaks to comments on SO. I tried adding a double line break in the comment editor, as one would do in a question, but that didn't work. After reading the comment help, I tried adding two spaces after each line; still, to no avail. Am I doing something wrong here?

I'm including a comment with an attempted line break.

share|improve this question

marked as duplicate by Bart, Arjan, Nick Craver Jan 27 '13 at 22:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Here's one line Here's another – Jules Jan 27 '13 at 21:46
Previously, it was possible to insert linebreaks in comment editor, but they don't appear as such after submitting. Related:… Right now, you've to use shift+enter for that (to separate your thoughts and so on). – BalusC Jan 27 '13 at 22:00
I already use Shift+Return to add a line break in the comment editor, but it disappears without a trace when the comment is published. – Jules Jan 27 '13 at 22:18
"but it disappears without a trace when the comment is published." That is a good thing. Trust me on this. On a few sites there is a way to force the matter and it is hellishly distracting. Comments are supposed to be wimpy little things without much expressiveness. – dmckee Jan 27 '13 at 23:45
up vote 9 down vote accepted

You can't add line breaks in comments, stop trying.

After reading the comment help, I tried adding two spaces after each line; still, to no avail

There is nothing in the comments help saying it's possible.

Comment formatting

Comments support only bold, italic, code and links; in addition, a few shorthand links are available.

share|improve this answer
This page begs to differ. Not to mention, I see comments around SO with line breaks all the time. – Jules Jan 27 '13 at 22:17
@JulesMazur, that page is for Q&A, not for comments, as they have a limited markup available. Regarding the examples, show me one...! – user209407 Jan 27 '13 at 22:18
I've looked through some questions, and I'm no longer able to find any examples. But then, why write that a line break can be added by using two whitespaces on the page I liked to? – Jules Jan 27 '13 at 22:23
@JulesMazur, Are you just asking? read the answers you get! – user209407 Jan 27 '13 at 22:28
@JulesMazur - it does add a line-break, in a post. Line breaks don't work in comments, never have...they could get obnoxiously, vertically tall if we did allow it. It's been discussed here on meta many times, and every time overwhelmingly shot down. – Nick Craver Jan 27 '13 at 22:29
@NickCraver, Actually I think it was supported once, wasn't it? you could add markup to comments, or am I wrong? – user209407 Jan 27 '13 at 22:30
Alright, thanks for the clarifications. – Jules Jan 27 '13 at 22:31
@gdoron - AFAIK it was never supported, that's not to say it wasn't possible at one point – Nick Craver Jan 27 '13 at 22:32
@NickCraver maybe if you do the something like either ( up to 600 characters in comment OR up 5/6 lines of with any number of characters). By doing this you still restrict the number of lines but give users more formatting power – Honey Apr 12 at 16:58
@asma22 There are many ways to exploit that, and you still have to consider the many-comments case where we have dozens in a section. I just can't see us supporting this. It also would produce unexpected behavior on existing mobile and API clients that have always known this to not work. – Nick Craver Apr 12 at 17:00
There are currently dozens of comments on a post, and many get folded. Your folding feature would still be effective on these. The pros of formatting outweigh the cons of a few. As for issues with mobile. I don't think that's a really good excuse, SO can kindly improve it's design or completely separate its mobile version from non-mobile clients. – Honey Apr 12 at 17:07
@asma22 the mobile clients are applications we don't have direct control over. – Nick Craver Apr 12 at 18:59

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