You can't really. The best you can do is have the section between <nowiki> tags. Some Wikis have also installed the Poem extension, which allows lines beginning with whitespace (and have the whitespace not be collapsed) well not looking like code.