Arbortext Command Language > Commands > mark
  
mark
mark [ -selection | -noselection] [ -invert | -noinvert] [ -word] [ begin | end]
This command starts or terminates a highlighted selection at respective cursor positions. In cases where neither begin nor end is specified, begin is assumed unless a selection is already started, in which case end is assumed.
In general, -selection (the default) causes Arbortext Editor to claim ownership of the window system PRIMARY selection. The window system selection is not affected if -noselection is specified. However, if end is also given with -selection, then the primary selection is affected only if a non-empty region is marked; if the marked region is empty, then mark -select end clears the marking and the window system PRIMARY selection is unaffected.
The -invert and -noinvert options determine whether selected text can be highlighted on the screen.
The -word option causes the selection to be extended in whole word increments.
Examples
mark
mar begin
mar end
# This is the default mapping for the left mouse button
# It enables you to position the caret in
# another window without losing the selection.
map all m1 {clear_mark;caret mouse;mark -noselect begin;}
map all up-m1 {mark -select end;}
mar -noinvert