Trello – Using code in Trello Cards

formattingtrello

In Markdown, you should be able to specify a block of code that will not trim whitespace by using four spaces in front of every line of code. Why doesn't it work?

Best Answer

It does work, you are mostly likely placing a block after a list. Consider separating it with a header

---
    #include<stdio.h>
    int main()
^ Four spaces

Will turn into this in your card


#include<stdio.h>
int main()