EmEditor (text editor) Forum Index
   Questions and Answers about Macros
     How to make replaced text automatically selected
Register To Post

Threaded | Oldest First Previous Topic | Next Topic | Bottom
Poster Thread
chjfth
Posted on: 9/25/2010 9:13 pm
Quite a regular
Joined: 10/20/2006
From:
Posts: 41
How to make replaced text automatically selected
Hello, Yukata. If I use


n = document.selection.Replace( "<(.+)>", "@\1", eeReplaceSelOnly+eeFindReplaceRegExp);


to replace current selected text to something, how can I make resulting text still selected(displayed in inverted color).

If the resulting text is selected, I can count its text length, save it to a variable for further processing etc.

Please advise.
« 1 (2)
Threaded | Oldest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文