Escape Sequences

Sometimes you need to enter special characters inside of text strings that you cannot type directly (such as a form feed character). To do this, type an escape sequence to represent the character. Escape sequences consist of a backslash character () followed by a single character or three digit ASCII code. For example, you use the sequence \f to enter a form feed character.

The following table lists all escape sequences.

Escape Sequences

Sequence Character Represented
\b Backspace
\f Form feed
\n New line
\r Carriage return
\t Tab
\' Single quote
\" Double quote
\ Backslash
*nnn* Character with ASCII octal code nnn
\0xnn Character with ASCII hexadecimal code nn

See Text Strings.