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.
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.
Either surround the code by backticks (
`) for smaller segments of code, or make sure that each line begins with a tab or at least four spaces.
Finally found the answer here:
using markdown is outdated, its not as easy as just using Gist haha, think I'll keep that route... they should really work on their tools.
I know that the subject is a bit old, but I found myself faced with this problem.
I wrote an userscript if anyone is interested in it. It works with triple backslash with line feed and allows syntax highlighting, according to the indicated language.