Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Highlight all matches for various text(general text highlighting feature)
Highlight all matches for various text [message #524579] Thu, 01 April 2010 13:51 Go to next message
Maxim Veksler is currently offline Maxim VekslerFriend
Messages: 28
Registered: July 2009
Junior Member
Hello,

How can I enable an arbitrary text highlighting in Eclipse IDE?

To explain what I mean go to

1. Help > Help Contents
2. Hit ctrl+f
3. Make sure "Highlight all matches" is checked
4. enter the text "he"

You will notice that all text occurrence contains "he" will be highlighted.


I want the same functionality for the main Editor window.

I'm not speaking about "Search" highlighting because that is a vary long and contains many user clicks way to do such a simple and IMHO very common task.


p.s. I'm not sure if this plugin http://colorer.sourceforge.net/eclipsecolorer/ could provide the described feature.


Thanks for the help,
Maxim.
Re: Highlight all matches for various text [message #524679 is a reply to message #524579] Thu, 01 April 2010 18:38 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Maxim Veksler wrote:
> How can I enable an arbitrary text highlighting in Eclipse IDE?

Try enabling "Mark Occurrences" (Control-Alt-O or from the toolbar) and then
use the incremental search: Control-J and then start typing. This highlights
all occurrences in my testing.

Brian.
Re: Highlight all matches for various text [message #525762 is a reply to message #524679] Wed, 07 April 2010 17:22 Go to previous messageGo to next message
Maxim Veksler is currently offline Maxim VekslerFriend
Messages: 28
Registered: July 2009
Junior Member
Brian de Alwis wrote on Thu, 01 April 2010 14:38
Maxim Veksler wrote:
> How can I enable an arbitrary text highlighting in Eclipse IDE?

Try enabling "Mark Occurrences" (Control-Alt-O or from the toolbar) and then
use the incremental search: Control-J and then start typing. This highlights
all occurrences in my testing.

Brian.


Hi Brian,

It did not work for me. Ctrl + J indeed does increment search but only the first result gets highlighted.

I'm looking for something like Chrome (Chromium) search which is IMHO perfect implementation for quick text search.


Any ideas?
Re: Highlight all matches for various text [message #526667 is a reply to message #524579] Mon, 12 April 2010 14:34 Go to previous messageGo to next message
Georgi Apostolov is currently offline Georgi ApostolovFriend
Messages: 1
Registered: April 2010
Junior Member
I have problem with highlight too. I want to see where start and end my bracelets

Like this: http://i73.photobucket.com/albums/i211/xspy/eclipse-bracers. jpg

I searched all day, no results Sad
Re: Highlight all matches for various text [message #526668 is a reply to message #526667] Mon, 12 April 2010 14:40 Go to previous messageGo to next message
Maxim Veksler is currently offline Maxim VekslerFriend
Messages: 28
Registered: July 2009
Junior Member
Georgi Apostolov wrote on Mon, 12 April 2010 10:34
I have problem with highlight too. I want to see where start and end my bracelets

Like this: http://i73.photobucket.com/albums/i211/xspy/eclipse-bracers. jpg

I searched all day, no results Sad


Indeed notepad++ highlighting is marvelous. It has the feature I am after (highlight all occurrences of the word on mouse double click) plus the mentioned above feature and a plethora of other very much helpful text editor tweaks.

Eclipse should adopt this editor highlighting logic into it's own editor. It would make many people happy.

Perhaps this deserves a feature request in Bugzilla ?
Re: Highlight all matches for various text [message #528483 is a reply to message #526668] Tue, 20 April 2010 16:30 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 4/12/10 10:41 AM, Maxim Veksler wrote:
> Georgi Apostolov wrote on Mon, 12 April 2010 10:34
>> I have problem with highlight too. I want to see where start and end
>> my bracelets
>>
>> Like this:
>> http://i73.photobucket.com/albums/i211/xspy/eclipse-bracers jpg
>>
>> I searched all day, no results :(
>
>
> Indeed notepad++ highlighting is marvelous. It has the feature I am
> after (highlight all occurrences of the word on mouse double click) plus
> the mentioned above feature and a plethora of other very much helpful
> text editor tweaks.
>
> Eclipse should adopt this editor highlighting logic into it's own
> editor. It would make many people happy.
>
> Perhaps this deserves a feature request in Bugzilla ?

Eclipse already does this for other programming languages; if that
feature is not available in the PHP editor, I do suggest you check
Bugzilla; there is most likely a feature request for it already. Keep in
mind that this is open source and just having a request for a feature
does not magically make it appear in the next release; materializing
features takes contribution from the community.

Eric
Re: Highlight all matches for various text [message #549583 is a reply to message #524579] Tue, 27 July 2010 09:34 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: July 2010
Junior Member
Ctrl + shift + a finds 'occurances in a file' that highlights all occurances of the selected text as you describe.

Through the GUI its on the 'source' menu.
Re: Highlight all matches for various text [message #549736 is a reply to message #549583] Tue, 27 July 2010 18:57 Go to previous messageGo to next message
Maxim Veksler is currently offline Maxim VekslerFriend
Messages: 28
Registered: July 2009
Junior Member
What version of eclipse are you using? I don't see such option in 3.6 EE version (Java Perspective).
Re: Highlight all matches for various text [message #630905 is a reply to message #524579] Tue, 05 October 2010 14:39 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: October 2010
Junior Member
I have found this plugin for text highlighting
http://code.google.com/p/eclipse-glance/

It works like Notepad++ on doubleclick word highlighting after pressing Ctrl+Alt+F in any (!) Eclipse editor
Re: Highlight all matches for various text [message #631372 is a reply to message #630905] Thu, 07 October 2010 10:30 Go to previous messageGo to next message
Maxim Veksler is currently offline Maxim VekslerFriend
Messages: 28
Registered: July 2009
Junior Member
No Real Name wrote on Tue, 05 October 2010 10:39
I have found this plugin for text highlighting
http://code.google.com/p/eclipse-glance/

It works like Notepad++ on doubleclick word highlighting after pressing Ctrl+Alt+F in any (!) Eclipse editor



THANK YOU.

If this was stackoverflow here you would get an up vote + selected answer + A thank you very much comment Smile from me.

[Updated on: Thu, 07 October 2010 10:30]

Report message to a moderator

Re: Highlight all matches for various text [message #1784392 is a reply to message #524579] Tue, 27 March 2018 15:03 Go to previous messageGo to next message
Ben Jiang is currently offline Ben JiangFriend
Messages: 1
Registered: March 2018
Junior Member
After so many years and still no such function in eclipse... Got pretty feed up with this, so I created a plugin for eclipse: https://marketplace.eclipse.org/content/highlight-selection .

It should work with all eclipse text based editors. It simply highlights selected word across the whole document. There are no hotkeys, like notepad++, or other bells and whistles. It only works on current selected word.
Re: Highlight all matches for various text [message #1800298 is a reply to message #1784392] Sun, 23 December 2018 22:55 Go to previous message
Petr Vyleta is currently offline Petr VyletaFriend
Messages: 1
Registered: December 2018
Junior Member
Are you aware of the long-existing Glance plugin?
Previous Topic:Where is the resources section now which mentioned various videos, books, tutorials to learn Eclipse
Next Topic:Setting up Eclipse with unprecise manual
Goto Forum:
  


Current Time: Tue Mar 19 04:20:12 GMT 2024

Powered by FUDForum. Page generated in 0.03808 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top