Ask Your Question

How to insert code block in comment

asked 2013-09-22 17:14:46 -0500

rybalkin gravatar image

I'd like to know how to insert code blocks in comments and if it possible to have the save editor for comments as you have for answers? I understand that comments should be small in general, but what if I want to have both q&a and discussions in the same place?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-09-22 17:39:24 -0500

Evgeny gravatar image

If you use Markdown, configure the comment editor to be the same as the Q&A editor (in the future version this will be the default too). Then add the code blocks the same way.

edit flag offensive delete link more



What you mean by default? a lot will prefer text-only in comment, so if it an option to change at any time it's better. Also in Markdown for comment you can use h1 h2 h3 which is a bad idea in comments, I think we should allow only **Bold** *Italic* `code` text link ..

Mustafa gravatar image Mustafa  ( 2013-09-23 07:52:39 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-09-22 17:14:46 -0500

Seen: 119 times

Last updated: Sep 22 '13