Wherever you add text in assignments you can include blocks of programming code. When you want to add programming code inline you start and end it with a ` (back tick) symbol. This text will be shown in a mono-space font suitable for displaying code. When you want to add a separate code block you start and end it with a line containing three back ticks: ```. Alternatively, you can indent every line with at least 4 spaces.
Quarterfall can automatically show syntax highlighting in code blocks, but you have to specify what the programming language is. To this end, put the name of the language behind the first ```. (Note that color coding is not possible for inline code.) Quarterfall supports a number of different languages. Currently the following languages are supported:
- cpp (that is C++)
- markup (that is HTML or XML)
More languages will be added in the future. If your desired language is not supported (does not show syntax highlighting), please contact us and we will (try to) add it.
Here is an example:
The result will look as follows: