Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers

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()
share|improve this answer
1  
A blank line will also do the trick. –  Rich Armstrong Jan 31 '12 at 13:20
add comment

It will only work in the card description, it doesn't work in the card comments.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.