Prev Next escape

Changing the Escape Character

Syntax
Description
Root Section
No Escape Character
Example

Syntax
$escape character$$

Description
The default escape character is the backslash, \. This command changes the escape character to the first character in character (not counting leading white space ). The escape command has effect till the next such command is executed or the end of the current section (which ever comes first).

Root Section
In the special case where an $escape command appears in the root section section, the last value specified in the root section replaces the backslash \ as the default for other sections.

No Escape Character
There is no escape character if the command
 
     $escape $$
appears in the current section. It is suggested that you use this as the default, by making it the last escape command in the root section.

Example
The delimiter in a codei command does not appear in its output. The escape character is useful for lining up output rows in a $codei or $icode command. For example, the input
 
     $escape #$$
     $codei%
     %x%   = 1 + %a% + %b%
     %y%   = 2 + # #   %b%
     %$$
produces the following output
     
x   = 1 + a + b
     
y   = 2 +     b

Input File: omh/escape.omh