14

It seems that comment style does not allow us to have new line. Can I know why?

8
  • Why do you want to enter a new line?
    – kennytm
    Oct 17, 2010 at 6:34
  • 3
    @Kenny You say that as though the concept of wanting newlines in text is preposterous :) Oct 17, 2010 at 7:27
  • @Michael: But it is. In comments even if you enter a new line it cannot be shown. See the answer by @Adam below.
    – kennytm
    Oct 17, 2010 at 8:32
  • @Kenny, it can be shown. Just not on these sites. Or, at least not when using a regular browser to view them. (A text-to-speech browser might even use it on these very sites?)
    – Arjan
    Oct 17, 2010 at 17:13
  • @Arjan: Yeah, good way to annoy those people not using a regular browser.
    – kennytm
    Oct 17, 2010 at 18:43
  • 4
    @KennyTM, how is it annoying? Are you the kind of person who jams all of your text together into a single paragraph?
    – Synetech
    Mar 15, 2011 at 6:10
  • 1
    you need this for the same reason you may want bullet points.
    – Markus
    Oct 5, 2017 at 13:20
  • So how can we enter formatted, multiline code, then?
    – Chris Wolf
    Sep 21, 2021 at 13:18

1 Answer 1

16

You can create a new line in a comment by pressing Shift + Enter.

The new line is not shown on SO, but should be present in the data dumps.

See answers to this question for reference and further detail.

8
  • I know it is saved and my question is why it is not rendered on SO sites.
    – Nam G VU
    Feb 24, 2015 at 4:41
  • @bernie, But it is not rendered as such.
    – Pacerier
    Apr 5, 2015 at 11:15
  • How can i do this on mobile?
    – Hellreaver
    Feb 7, 2016 at 9:48
  • you save my day Jul 14, 2016 at 3:48
  • test it workss really !!
    – j10
    Sep 28, 2017 at 6:36
  • 2
    Not anymore. Just tried it today (1/29/21) on a StackOverflow question. Probably an artifact of the switch to a new rendering engine. Hope it gets fixed ;-)
    – Tom Hundt
    Jan 29, 2021 at 19:33
  • @TomHundt: thanks for testing and your comment. I have edited the answer to mention this change. Jan 29, 2021 at 23:31
  • 1
    @TomHundt Looks like it works now.
    – Ollie
    Jan 29, 2021 at 23:42

You must log in to answer this question.

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