Slick V3.3 Manual Do Utilizador
Escape Sequence
Description
%\x-Increment
Decrement column by ddd.
%\s
Preserves trailing spaces - place at the end of a
line.
line.
%\l
Preserves leading spaces - place at the beginning
of the first alias line.
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.
cified.
%\m sur_text%
Indicates where the text to be surrounded will be
placed. See
placed. See
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.
and time inserted.
/************************************************/
/* Date: %\d Time: %\t */
/***********************************************/
/* Date: %\d Time: %\t */
/***********************************************/
if - A simple if statement, with indenting, support for
surround, and a cursor position.
surround, and a cursor position.
if(%\c){
%\i// Comment goes here
%\i%\m sur_text%
}
%\i// Comment goes here
%\i%\m sur_text%
}
ifelse - An if/else statement with indenting and sev-
eral cursor hot spots.
eral cursor hot spots.
if(%\c){
%\i%\c
} else {
%\i%\c
}
%\i%\c
} else {
%\i%\c
}
Extension-Specific Aliases
156