mark

Marks a selection of text.

Syntax
aSourceFile mark (aSection, type, startLine, startColumn, endLine, endColumn)
Parameters
aSection - Integer
The section containing the text to mark.
type - Integer
The type of marker:
  • mt_bookmark
  • mt_match
  • mt_error
  • mt_pair
  • mt_breakpoint
startLine - Integer
The line number of the beginning of the selection.
startColumn - Integer
The column of the beginning of the selection.
endLine - Integer
The line number of the end of the selection.
endColumn - Integer
The column of the end of the selection.
Remarks

This method ignores the read-only status of the text file owning this section. It is always possible to perform a replace.

The start and end position does not have to be ordered. If the start position is after the end, the positions are switched automatically.

The text positions are automatically fixed to be within bounds.

This is the main method for all text edits.

  • To insert text, just use the same start and end positions.
  • To delete text, just use an empty block.