Highlighting the currently selected string

Find, replace, find in files, replace in files, regular expressions

Highlighting the currently selected string

Postby amm68 » Fri Aug 29, 2008 9:24 am

Hi,

is it possible (via syntax highlighting ?) to highlight the currently selected string like this:

2008-08-29_162115.png
2008-08-29_162115.png (5.25 KiB) Viewed 5406 times


Seen that in Eclipse or as above in Notepad++

thx from a 10plus year Ultraedit user ...
User avatar
amm68
Newbie
 
Posts: 3
Joined: Tue Feb 22, 2005 12:00 am

Re: Highlighting the currently selected string

Postby Mofi » Fri Aug 29, 2008 10:12 am

Run a find with the selected string and enable option Highlight All Items Found. The found strings will be highlighted as long as you do not move the cursor or continue editing. I for myself run in such situations always a Find In Files on all open files with result to the output window or use the option List Lines Containing String in the find dialog. But most of the time I simply select a text and press repeatedly F3 to find the other occurrences and edit them if necessary. Find a selected text with F3 or Ctrl+F3 requires enabled configuration setting:

Find next/prev finds selected text (not last searched for text)

If this option is selected the editor will find the selected text when a FIND NEXT/PREVIOUS command is performed instead of the previous search string UNLESS the Regular Expressions option is selected.


A permanent highlighting until you want something different highlighted is not possible, except you open the wordfile currently in use, add the word (not strings!) you want highlighted to one of the color groups of the language currently used for syntax highlighting and save the wordfile. Now switch back to your file and you will see that word highlighted.

The exact same feature as in Eclipse or in Notepad++ is currently not available in UltraEdit.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4049
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Highlighting the currently selected string

Postby Hector » Mon Oct 05, 2009 10:09 pm

I love UE. It is robust and lightweight. It is open all day everyday at work. I also use eclipse for Java development.

I've gotten quite accustomed to highlighting the current word in eclipse and having all other occurrences of the word highlighted in the current file. It is a very useful tool.

As of the last post (August 2008) this functionality wasn't in UE. Does it now exist (1 year + later)? It would be another great feature.

If it is not:
Ian, could we get this feature (as implemented in eclipse)?

Thanks
Hector
Newbie
 
Posts: 1
Joined: Mon Oct 05, 2009 10:01 pm
Location: Syracuse, NY

Re: Highlighting the currently selected string

Postby Mofi » Tue Oct 06, 2009 12:21 am

Hector wrote:Does it now exist (1 year + later)?

No, also just released UE v15.20.0.1016 does not have such a feature. I guess most users use the existing capabilities and therefore have not sent a feature request email to IDM for such a feature.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4049
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Highlighting the currently selected string

Postby MCee » Fri Nov 13, 2009 5:35 am

I just sent a feature Request to IDM concerning this feature, really would love to see it as an option in future versions.

I've seen this feature in Notepad++ which I had to use for a while until I got my UEMobile and really fell in love with this feature.
It really helps a lot if you have to typewrite code, especially helps to find and correct typos on text that you can't spell check.
MCee
Newbie
 
Posts: 1
Joined: Fri Nov 13, 2009 5:26 am

Re: Highlighting the currently selected string

Postby pepemosca » Fri Feb 18, 2011 5:39 pm

This feature is available in UltraEdit v17.00 and later. :)
pepemosca
Basic User
Basic User
 
Posts: 27
Joined: Sat Apr 24, 2010 8:31 am
Location: Argentina

Re: Highlighting the currently selected string

Postby CFQueb » Thu Sep 08, 2011 8:53 pm

+1

Please, add this feature soon. Notepad++ has this so long time. Will be nice and useful if clicking a word UE highlight all occurrence automatically (not using the Find command).

Thank you in advance
User avatar
CFQueb
Basic User
Basic User
 
Posts: 13
Joined: Fri Feb 25, 2005 12:00 am

Re: Highlighting the currently selected string

Postby pepemosca » Fri Sep 09, 2011 8:18 am

CFQueb wrote:Please, add this feature soon. Notepad++ has this so long time. Will be nice and useful if clicking a word UE highlight all occurrence automatically (not using the Find command).

It's available from the version 17.00.

IDM wrote:The persistent "highlight all" can be invoked on the word under the caret either via Shift + Double Click or via the hotkey Ctrl + . (period). There is also a new "Highlight All Selected" toolbar icon which can be used to enable/disable persistent highlighting - this also works with the "Highlight All Items Found" item in the Find dialog.
pepemosca
Basic User
Basic User
 
Posts: 27
Joined: Sat Apr 24, 2010 8:31 am
Location: Argentina

Re: Highlighting the currently selected string

Postby bulgrien » Fri Sep 09, 2011 9:38 pm

CFQueb wrote:Will be nice and useful if clicking a word UE highlight all occurrence automatically (not using the Find command).

While single-clicking in NP++ is convenient, it really isn't the best solution for an editor that handles huge files. A global highlight on a huge file could really bog down the editor. The Ctrl+Period solution works well enough for me.
User avatar
bulgrien
Master
Master
 
Posts: 92
Joined: Fri Dec 11, 2009 1:02 am
Location: Pennsylvania, USA

Re: Highlighting the currently selected string

Postby CFQueb » Sat Mar 17, 2012 9:34 am

Yes.. You're right. A single click is not the best approach to do this.
User avatar
CFQueb
Basic User
Basic User
 
Posts: 13
Joined: Fri Feb 25, 2005 12:00 am


Return to Find/Replace/Regular Expressions