Important: This block cannot have child elements!
The code block is used in an example to show example code. It is prefixed with a dollar sign ($), and all text following it will be show on the HTML page verbatim, without any further markup processing being done. It even allows you to display ZippyDoc formatting characters without having them interpreted, as is done on this page!
Example: Using a code block
Code:^ my_function(**argument**, **another_argument**)
Some kind of text describing the function goes here.
argument::
This is the first argument to this example function.
another_argument::
This is the second argument to this example function.
As you can see, it's possible to split the explanation over multiple lines as well.
@ Using this function
$ my_function(42, "The answer to everything")
> Some output goes here.
It is also possible to have a code block spanning multiple paragraphs, without each paragraph being broken up into a separate code block (as would normally happen if you just used the dollar sign). To do this, you can use two dollar signs at the start of the block. Note that after these two dollar signs, whitespace (except for spaces) is not eaten, meaning you can use tabs to indent further blocks of your code!
Example: Using a multi-paragraph code block
Code:^ my_function(**argument**, **another_argument**)
Some kind of text describing the function goes here.
argument::
This is the first argument to this example function.
another_argument::
This is the second argument to this example function.
As you can see, it's possible to split the explanation over multiple lines as well.
@ Using this function
$ if some_variable == True:
$$ my_function(42, "The answer to everything")
> Some output goes here.