Any line starting with whitespace becomes preformatted text:
Public Class MyClass
Public Sub New()
DoCoolStuff()
If IsReallyCool Then
DoSomethingEvenMoreCool()
End If
End Sub
End Class
public class CSharpExample {
CSharpExample() {
int n = 5;
object[] test = new object[n];
}
}
Text inside of a PRE block doesn't get hyperlinks automatically added to it.
Here is another '''example.'''
Non-indented preformatted text
It is difficult to cut and paste source files into Wiki and then insert 1 space before every line. The "PRE block" solves this problem. There are 2 usage scenarios: simple syntax and syntax with a key.
Simple Syntax:
{@
your text goes
here and it does not have to start with space or tab
}@
Produces:
your text goes
here and it does not have to start with space or tab
Syntax with key (if for some reason your text contains }@ at the beginning of a line)
{@UniqKey
any text
here including
}@ at line beginning
still inside pre
}@WrongKey
still inside pre
}@UniqKey
Produces:
any text
here including
}@ at line beginning
still inside pre
}@WrongKey
still inside pre