#19435
Yutaka Emura
Keymaster

Hello Mr. KT,

You can replace text only in the selection by using (JavaScript):


document.selection.Replace( "find", "replace", eeReplaceSelOnly | eeReplaceAll );

For the “find”, please use EmEditor v14.6.0 beta 18 or later, and you can do this:


document.selection.Find( "find", eeFindNext | eeFindReplaceSelOnly );

I hope this helps.

Thank you!