Extension-Specific Aliases

 

 

 

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 Parameter Prompting.

 

 

 

%\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

if(%\c){

surround, and a cursor position.

%\i// Comment goes here

 

%\i%\m sur_text%

 

}

 

 

ifelse - An if/else statement with indenting and sev-

if(%\c){

eral cursor hot spots.

%\i%\c

 

} else {

 

%\i%\c

 

}

 

 

 

 

 

 

156

Page 178
Image 178
Slick V3.3 manual Escape Sequence Examples, Escape Sequence Description, m surtext%