Page 1 of 1

Highlight all occurrences of a string throughout a document?

Posted: Thu Aug 11, 2011 9:53 pm
by leegold
Hi,

Is there a feature to highlight "abc" for example and have Textpad highlight all occurrences of "abc" throughout a document? Would be most useful in my case but don't see the option.

Thanks

Posted: Thu Aug 11, 2011 11:10 pm
by ak47wong
After you've selected "abc", click Search > Find and then click Mark All. This places a bookmark on each line that contains the selected string. You can then use the commands in the Search menu to work with them. That's the closest that TextPad has to what you've described.

Posted: Sun Aug 14, 2011 2:40 pm
by leegold
That's good but my situation is I have very long text string. Say you're extracting data from a web page - the result can be a very long string. Many editors "break" with such a big string, but no problem with Textpad and it will wrap it to the window fast. But the bookmarking you mentioned only works with separate lines in a file.

I need just, highlight all occurrences.

I'm locked into to using Textpad because it will not complain about the file but wish it had this useful feature.

Thanks

Posted: Wed Aug 17, 2011 10:06 pm
by Nial
YES!

Details in a very old thread here.....

http://forums.textpad.com/viewtopic.php?t=3848

I've had to re-install textpad in a PC after a rebuild and am only realising how much I rely on this when I haven't re-installed it yet.

The textpad developers mustn't have tried this yet or it would have been included as new functionaltiy in an update!


Nial