Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Character Escapes & References

Format strings include special characters that need to be escaped in certain contexts. They also allow character references, to make including uncommon characters a bit easier.

Escapes

The characters $@();: and ` can be escaped by preceding the character with a dollar sign. This is useful to avoid using a function or token where you don’t intend to.

For example, $$PI() would result in $PI().

References

Although you can directly include characters like « and », format strings also accept character references for ease-of-use.

Both named references and numeric references are supported. Numeric references behave similarly to the $Char function; the character with the number specified will be used in place of the reference.

Using character references, « $input » can be specified as « $input » or « $input ».

The available characters are limited to those in the ISO-8859-1 character set.