20

Hello

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.

2

5 Answers 5

14

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.

20
  • 8
    What about NewLine ?
    – Ibn Saeed
    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
    Jul 11, 2009 at 15:25
  • testing, bold italic var x = 123; \\code
    – o.k.w
    Oct 22, 2009 at 8:52
  • 1
    how do I mark inline code? what's the syntax? 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! Mar 30, 2011 at 14:41
  • @Naeem surround your code snippet with backticks `
    – Belinda
    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
    May 30, 2011 at 9:20
  • Test comment: [bold] [italic] foo bar(){ print "working; }
    – gsgx
    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... May 30, 2012 at 3:42
  • just add two spaces at the end of a line for newline.
    – AnojiRox
    Aug 31, 2012 at 18:51
  • this is a test..this is a test
    – Kieran
    Mar 21, 2013 at 18:50
  • this is a test .. this is a test
    – Kieran
    Mar 21, 2013 at 18:50
  • this is a test. this is a test
    – Kieran
    Mar 21, 2013 at 18:51
  • this is a test This is a test
    – Kieran
    Mar 21, 2013 at 18:54
  • this is a test. this is
    – Kieran
    Mar 21, 2013 at 18:54
17

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.

6
  • if it is an answer it should be posted as an answer. 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
    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
    Mar 30, 2011 at 13:20
  • Yeah Sure .Its a necessity.Give the user the freedom, with only essential moderation.OSS Live Long !!!
    – Jibin
    May 30, 2011 at 9:07
  • 1
    A lot of people asking for Line breaks..
    – Revious
    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
    May 22, 2014 at 2:24
11

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

3
4

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?

2
  • Instead we get something like: Markdown has support for this Aug 7, 2009 at 13:56
  • 7
    this looks kind of silly now that these links are supported in comments ;-)
    – SamB
    Apr 19, 2011 at 22:00
3

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

1
  • 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.) 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 .