This plugin recognizes these escape sequences:
Code: | Expands to: | Example: |
---|---|---|
\nnn | octal value, up to 777 | \101 → A |
\\ | backslash (0x5c) | |
\a | ASCII BEL character (0x07) | |
\b | backspace | |
\c | comma | |
\e | ASCII ESC character (0x1b) | |
\f | form feed (0x0c) | |
\k | grave accent (0x60) | |
\n | line feed (0x0a) | |
\q | double quotes (0x22) | |
\r | carriage return (0x0d) | |
\s | space (0x20) | |
\t | tab (0x09) | |
\u nnnn | Unicode character, up to U+FFFF | \u03a3 → Σ |
\U nnnnnnnn | Unicode character, up to U+10FFFF | \U0001f63a → 😺 |
\v | vertical tab (0x0b) | |
\x nnnn | hexadecimal value, up to FFFF | \x0041 → A |
\# nnnnn | decimal value, up to 65535 | \#65 → A |
Note that case is significant for the letter after the backslash. All must be lowercase,
except for \U
xxxxxxxx.
Case is not significant in hexadecimal values. \u
xxxx
and \x
xxxx read up to four hexadecimal digits;
\U
xxxxxxxx reads up to eight. You may use fewer than four
(or eight) digits if the following character is not a valid hex digit.
Similarly, octal character escapes read up to three octal digits. You may use fewer than three if the following character is not an octal digit. Decimal escapes read up to five decimal digits; you may use fewer than five if the following character is not a digit.