How do I indent a code block?

Dec 9, 2010 at 4:59 PM

I can't seem to indent a code block. Colons on the front of the code tags has no effect (other than to show the colon).

Coordinator
Dec 9, 2010 at 5:03 PM

You should use the new multi-line indentation macro...

:{
{code:c#}
public class Foo { }
{code:c#}
:} 

Dec 9, 2010 at 5:20 PM

And what is the minimum version for this multi-line indentation?

Coordinator
Dec 9, 2010 at 5:25 PM

It was introduced in v2.0

Jan 27, 2011 at 7:05 PM

Very helpful!

I was doing:

:{code:c#}
public class Foo { }
{code:c#}

which indents the code, but leaves all other stuff after it indented.  Now I understand why a bit more.

Thanks!

Jan 27, 2011 at 7:09 PM

Does not seem to support nested indenting though :(

Coordinator
Feb 3, 2011 at 3:47 PM

Sorry for the delayed response... I think the format that should be used is

:{
{code:c#}
public class Foo { }
{code:c#}
}: