Trello – Best Way to Paste Code into a Trello Card

copy/pastetrello

When I try to paste code into Trello I get very weird formatting after saving but it seems it does format code, I just can't get it to work right. Currently I'm just putting links to Gist, but I would prefer to just paste it straight in there.

Best Answer

Include formatted code by wrapping it in three backticks (```) at the beginning and end of the block, or by starting a line with four spaces.

Important note — the triple backticks have to be on a separate line and ensure you have a blank line before and after the code block.