Good for short code segments:
Not so good for longer segments:
Used to highlight code samples in an enlarged (through the site's main.css), monospace typeface that is easier to read than the default.
The template form is shorter and easier to enter while editing.
- Instead, see the technique below:
For code blocks
<nowiki> Start with a space in the first column, (before the <nowiki>). Then your block format will be maintained. This is good for copying in code blocks: def function(): """documentation string""" if True: print True else: print False</nowiki>
Working Example (click edit to see wikicode)
def function(): """documentation string""" if True: print True else: print False