replaceText command

Use the replaceText command to replace text at the current cursor position.

 

Syntax

replaceText text 

 

Parameters

text The text specified with the text parameter will be used to replace text at the current cursor position.

 

Status

The status parameter is not affected by this command.

 

Description

If the text passed to the replaceText command contains line delimiter characters ("\r\n", '\r', or '\n'), new lines will be inserted into the document.

 

Examples

replaceText Some new text. 

Related concepts
Editor commands, actions, and parameters

Related reference
deleteText command
insertText command
text parameter
Default editor commands