Writing text using the templating system is not always straightforward, and it is necessary to take steps to take care of special characters, and there are different modes to modify the text.
Special characters
Certain characters are reserved in the templating syntax. To output them as text, they must be written in the following form:
$$ | inserts $ |
\\ | inserts \ |
\" | inserts " |
\n | inserts a new line |
\r | inserts a carriage return |
\t | inserts a tab |
Modes
Modes are used to alter how text is written after they are invoked, or to allow special characters to be output in cases where they would otherwise not be read (for example, writing whitespace characters when their output is disabled).
$[a] | enables output of whitespace characters (default mode) |
$[b] | disables output of whitespace characters |
$[# someComment ] | writes a comment and everything inside the brackets is ignored |
$[n] | inserts '\n' (new line) |
$[r] | inserts '\r' (carriage return) |
$[t] | inserts '\t' (tab) |
$[s] | inserts ' ' (space) |
The four special modes ($[n], $[r], $[t], $[s]) also work when $[b] mode is active.