LSE$HELP.HLB  —  ALIGN
  Syntax:  ALIGN column

  Aligns trailing comments within the current selected range.

  This command operates on each line in the range in sequence.  For
  each line, LSE checks to see whether the line has a trailing comment.
  Note that the buffer must be associated with a language.  LSE uses
  the language definitions to determine what are comments.

  If a line does not have a trailing comment, it proceeds to the next
  line.  If there is a trailing comment, then LSE either inserts or
  deletes spaces or tabs as necessary to get the comment to align.  If
  there is no room for the comment on the line (that is, if the
  noncommented text extends beyond the comment column), then the
  comment is aligned one space after the end of the noncommented text.

  The default column number is determined from the language associated
  with the buffer.

  The following text is a sample of commented code:

                         -- This is the first line of comments.
                         if a:=b:
                -- This is the second line of comments.
                                 -- This is the third line of comments. --

  If the default column number is associated with the first commented
  line, the ALIGN command rearranges the text as follows:

                         -- This is the first line of comments.
                         if a:=b:
                         -- This is the second line of comments.
                         -- This is the third line of comments.

  RELATED COMMANDS:

     FILL
     SET LANGUAGE TRAILING
       COMMENTS
Close Help