Macro Language Reference > Macros > Script > "
  
"
Description
Identifies and edits a text stream programmatically.
 
Example 184. Place cursor at start of specified tag
This example will place the cursor at the start of the body tag:
"body
 
Example 185. Open a tag for edit and automatically select text
This example will open the body tag for edit and automatically select the text between character positions 50 and 100 within that tag:
"body",50,100
 
Example 186. Edit the current tag based on cursor position
"+
 
Example 187. Edit a stream from a specified character position
The following syntax can be used in scripts to edit a certain stream, beginning at a particular character position:
^strtpos=99
^strm=body
"^strm",^strtpos^
Syntax
trsize
target text
The name of the text stream to be edited: include a closing " if you are using the second and third parameters.
position one
The position in the stream at which the cursor will be placed when the stream is opened. This is also the start character position if selecting text within the tag.
position two
The end character position if selecting text within the tag.
+ / -
Access either the current tag upon which the cursor is positioned (+) or step out to the previous cursor position (-). This eases inter tag navigation especially when tags are nested.
* 
By default this key configuration is loaded onto Alt+ and Alt- respectively.