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.


5 Answers 5


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
    Commented Jul 11, 2009 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
    Commented Jul 11, 2009 at 15:25
  • testing, bold italic var x = 123; \\code
    – o.k.w
    Commented Oct 22, 2009 at 8:52
  • 1
    how do I mark inline code? what's the syntax? Commented Feb 3, 2010 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! Commented Mar 30, 2011 at 14:41
  • @Naeem surround your code snippet with backticks `
    – Belinda
    Commented May 3, 2011 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
    Commented May 30, 2011 at 9:20
  • Test comment: [bold] [italic] foo bar(){ print "working; }
    – gsgx
    Commented Oct 1, 2011 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... Commented May 30, 2012 at 3:42
  • just add two spaces at the end of a line for newline.
    – AnojiRox
    Commented Aug 31, 2012 at 18:51
  • this is a test..this is a test
    – Kieran
    Commented Mar 21, 2013 at 18:50
  • this is a test .. this is a test
    – Kieran
    Commented Mar 21, 2013 at 18:50
  • this is a test. this is a test
    – Kieran
    Commented Mar 21, 2013 at 18:51
  • this is a test This is a test
    – Kieran
    Commented Mar 21, 2013 at 18:54
  • this is a test. this is
    – Kieran
    Commented Mar 21, 2013 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. Commented Dec 30, 2009 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
    Commented Jun 24, 2010 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
    Commented Mar 30, 2011 at 13:20
  • Yeah Sure .Its a necessity.Give the user the freedom, with only essential moderation.OSS Live Long !!!
    – Jibin
    Commented May 30, 2011 at 9:07
  • 1
    A lot of people asking for Line breaks..
    – Revious
    Commented Feb 25, 2014 at 11:39
  • Please, add line breaks. I've had to resort to multiple comments as a kludge to make the comment readable.
    – jetset
    Commented May 22, 2014 at 2:24

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

  • I'm for this too Commented Feb 3, 2010 at 15:15
  • 6
    FWIW, this is now allowed -- I've used it a number of times.
    – martineau
    Commented Nov 24, 2010 at 0:26
  • This already exists -< that was an example Commented Apr 24, 2015 at 19:56

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 Commented Aug 7, 2009 at 13:56
  • 7
    this looks kind of silly now that these links are supported in comments ;-)
    – SamB
    Commented Apr 19, 2011 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.) Commented May 22, 2014 at 4:12

You must log in to answer this question.

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