How to preserve indentation when pasting code here? (solved)


#1

When I paste code from a VisualStudio project here (using [ code][ /code] tags) my indentation gets partly messed up. It stays intact when I paste into Notepad++ for example.

How do I paste code properly here so the indentation stays intact ?


#2

Either you indent your code by 4 spaces (and a newline before the block), or tripple ` in a row before and after the block. That way you don’t have to manually indent every line.

I think this one is used: http://commonmark.org/help/

HTH


#3

Tripple ` in a row works fine, thank you.