Epsilon User's Manual and Reference >
Command Reference >
|Change spacing to line up similar things. ||Ctrl-C Ctrl-A|
This command looks for strings that occur on more than one line in the
region, then changes the spacing before them to make them line up. By
default, it does this for "
=" characters and comments. Modes
can define additional strings to align. C mode also aligns the names
of variables in simple variable definitions and the definitions of
#define lines. The align-region-rules
variable controls what will be aligned.
With a numeric argument, this command does manual alignment. It
prompts for a regular expression pattern. The pattern must consist of
two subpatterns, each enclosed in parentheses, such that
#2 would match the subpatterns in a regular expression replacement
operation. For each line containing a match for the pattern, the
spacing at the boundary between the two subpatterns will be modified.
The new spacing will be based on the widest match for
To align the semicolons on each line, for example, you could use the
()(;). Epsilon uses the first match of the pattern on
each line, skipping lines that don't contain a match.
Copyright (C) 1984, 2016 Lugaru Software Ltd. All Rights Reserved.