September 19, 2016 at 12:33 am #21046
Stefan
Participant
Thank you very much for the feedback.
That way works, but I miss a way to adjust the added marker, to highlight all spellings and ‘whole word only’.
Maybe I am better use the ‘Find’ command only, to highlight the ‘MySearchStr’ string.
MY USAGE EXAMPLE:
-search code here to find lines containing ‘MySearchStr’-
-then I extract that lines incl. surrounding lines to another document:
editor.NewFile()
document.writeln(resultText)
document.selection.Find MySearchStr, eeFindPrevious
document.selection.SelectWord
editor.ExecuteCommandByID 4560
.