I would like to see changes in the comment section. Presently, we cannot start a new line. Everything gets posted in one line. Even the code looks horrible.

Also, to color the code in comments.


There is limited Markdown allowed in the comments.

You can create bold using the **[text]**

You can create italic using the *[text]*

You can do inline code using the backticks "`" on either side of the text.

  • 8
    What about NewLine ? – Ibn Saeed Jul 11 '09 at 15:18
  • There is no ability to post new lines in a comment. I would suspect that this is because it is a general idea to keep comments short, and not to post entire essays which would require line breaks in between. At times I would like to have a line break, but in the grand scheme of things I don't think it is anything to worry over. – TheTXI Jul 11 '09 at 15:25
  • testing, bold italic var x = 123; \\code – o.k.w Oct 22 '09 at 8:52
  • 1
    how do I mark inline code? what's the syntax? – Naeem Sarfraz Feb 3 '10 at 15:17
  • 8
    I also would like newlines in comments. Sometimes you post code snippets and they need newlines. I can't see any valid reason to not have them. If it makes someone's comments take up more space on the page, so what? Just scroll down! – Max Williams Mar 30 '11 at 14:41
  • @Naeem surround your code snippet with backticks ` – Belinda May 3 '11 at 8:46
  • 2
    Just b'cos some moderators think so...Its too restrictive! Rules are Good if you can explain its purpose Satisfactorily. – Jibin May 30 '11 at 9:20
  • Test comment: [bold] [italic] foo bar(){ print "working; } – gsingh2011 Oct 1 '11 at 19:21
  • How do you post inline code that contains an actual backtick character? I tried using double backticks and it just shows two backticks... – Code Commander May 30 '12 at 3:42
  • just add two spaces at the end of a line for newline. – AnojiRox Aug 31 '12 at 18:51
  • this is a test..this is a test – Kieran Mar 21 '13 at 18:50
  • this is a test .. this is a test – Kieran Mar 21 '13 at 18:50
  • this is a test. this is a test – Kieran Mar 21 '13 at 18:51
  • this is a test This is a test – Kieran Mar 21 '13 at 18:54
  • this is a test. this is – Kieran Mar 21 '13 at 18:54

please.. allow carriage returns in comments.. many times the answer is a piece of code.. the backtick is OK but spaces are merged and carriage returns are stripped.

  • if it is an answer it should be posted as an answer. – Jeff Atwood Dec 30 '09 at 10:50
  • 9
    Jeff, what if you are critiquing an answer? see my comment on an answer in this question for a legitimate use of code in comments: stackoverflow.com/questions/3114252/… – andrewrk Jun 24 '10 at 22:23
  • 4
    I agree with @Zibri and @superjoe30, there is no effective way to critique an answer given the existing limitations on comments. – rkagerer Mar 30 '11 at 13:20
  • Yeah Sure .Its a necessity.Give the user the freedom, with only essential moderation.OSS Live Long !!! – Jibin May 30 '11 at 9:07
  • 1
    A lot of people asking for Line breaks.. – Revious Feb 25 '14 at 11:39
  • Please, add line breaks. I've had to resort to multiple comments as a kludge to make the comment readable. – jetset May 22 '14 at 2:24

I'd like to see the [Foobar](http://www.example.com) URL markdown in comments.


What about links that provide readable text instead of a long URL? Markdown has support for this.

See what I just did there? Now can we do that in comments?

  • Instead we get something like: Markdown has support for this – Doug Harris Aug 7 '09 at 13:56
  • 7
    this looks kind of silly now that these links are supported in comments ;-) – SamB Apr 19 '11 at 22:00

The original request has 'status-declined' but was asking for coloring and such. That might be overkill, but line breaks really should be supported.

  • What would you include in comments that would need line breaks? (Bearing in mind if you're posting complex code, a comment probably shouldn't be where you put it.) – doppelgreener May 22 '14 at 4:12
  • 1
    @JonathanHobbs, explanatory material may need line breaks. Most recent example, I was trying to show a few output lines to illustrate why an answer was correct or incorrect. The entire comment would have been brief, but without line breaks was too hard to read. – jetset May 22 '14 at 4:48

You must log in to answer this question.

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