5

The only way I know to copy multi lines of code into the chat is to copy one line by one line and for each line inserting a ` at the start and at the end.

I have searched informations all over the site but was not successfull.

6

Simply paste the code by itself into the comment box.
you should see a new button appear to the right: fixed font

-- click that and it should format your comment as code.

enter image description here

Tested with Chrome/Windows

(informations coming from the chat, Mr.Wizard)

I suggest to play with this feature in the sandbox chatroom : it works too.

  • As far as I can tell, Ctrl+K works, too. – xzczd Feb 12 '17 at 11:03

You must log in to answer this question.

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