Escape sequence examples – Slick EDIT V3.3 User Manual
Page 178

Escape Sequence
Description
%\x-Increment
Decrement column by ddd.
%\s
Preserves trailing spaces - place at the end of a
line.
%\l
Preserves leading spaces - place at the beginning
of the first alias line.
%(ParameterName)
Parameter replacement. See
%\m MacroName ArgumentList%
Calls the specified Slick-C
®
macro with a specified
optional argument.
%EnvironmentVariable%
Inserts the value of the environment variable spe-
cified.
%\m sur_text%
Indicates where the text to be surrounded will be
placed. See
Dynamic Surround and Surround With
for more information.
Escape Sequence Examples
The following table contains some examples of using escape sequences in alias values:
Table 6.8. Escape Sequence Examples
Alias Name and Description
Value
comment - A header comment to have the date
and time inserted.
/************************************************/
/* Date: %\d Time: %\t */
/***********************************************/
if - A simple if statement, with indenting, support for
surround, and a cursor position.
if(%\c){
%\i// Comment goes here
%\i%\m sur_text%
}
ifelse - An if/else statement with indenting and sev-
eral cursor hot spots.
if(%\c){
%\i%\c
} else {
%\i%\c
}
Extension-Specific Aliases
156