This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

searching multiple words within page separately

  • 5 replies
  • 1 has this problem
  • 1 view
  • Last reply by chet.yale

more options

1. I am searching within a page using the Find function. 2. When I type in a search word, Find accurately highlights the word. 3. I am trying to search multiple words at once, and have Find highlight them separately.

E.g. Search for "motor OR cables" would search for "motor" and "cables" and not "motor cables" i.e. the search string has to be truncated to allow for each word to be searched separately.

1. I am searching within a page using the Find function. 2. When I type in a search word, Find accurately highlights the word. 3. I am trying to search multiple words at once, and have Find highlight them separately. E.g. Search for "motor OR cables" would search for "motor" and "cables" and not "motor cables" i.e. the search string has to be truncated to allow for each word to be searched separately.

Chosen solution

Hi,

  • How do I change highlighting colors?*
 You have to change the userContent.css file. You can also change buttons' icon with the userChrome.css file, but this is a little bit trickier.

Go to the following link to know everything about userContent.css and userChrome.css file:

http://www.askvg.com/list-of-files-that-can-be-hacked-to-configure-firefox/

Use following code in your newly created userContent.css file and change the colors you want by searching its hex code on google.


{{{ .searchwp-term-highlight1, .searchwp-term-highlight2, .searchwp-term-highlight3, .searchwp-term-highlight4, .searchwp-term-highlight5 {

 color: black !important;

}

.searchwp-term-highlight1 {

 background-color: #ffff00 !important;

}

.searchwp-term-highlight2 {

 background-color: #00ffff !important;

}

.searchwp-term-highlight3 {

 background-color: #00ff00 !important;

}

.searchwp-term-highlight4 {

 background-color: #ff7777 !important;

} }}}

If you don't like the look, you can always remove it from userContent.css and restart Firefox again.

Hope it will help you. You can always get back to me and I will see if I can help you.

Have a good day ahead.

Read this answer in context 👍 2

All Replies (5)

more options

Hello,

You can use the following Add-on and let me know if It helped your cause:

https://addons.mozilla.org/en-US/firefox/addon/searchwp/

If it did not help you,please get back to me. I will try to help you again.

more options

The built-in Find feature doesn't do this. You might be able to find an add-on to do it. One place to search is:

You might also find a user script which can do this. A user script is a chunk of JavaScript code interpreted by the Greasemonkey extension. Unlike the official extensions site, you often need to do a little more research to see whether you can trust a user script, and also the interface is a bit clunkier. But I just happen to have read about one that might work for you (I haven't tried it myself):

more options

Works good. But can you change the color spectrum of the highlights? For example, when I type "motor cables action", I want the contrast to be higher. Currently, the successive search words are all highlighted by similar colors. I would like to have more contrast e.g. first word could be highlighted yellow, second blue, third green, fourth red. I dont think people would need more than 4 words on average. I am thinking of how I work when I highlight regular paper. Does this make sense? The question then is can the add on be customized to have a user choose the successive highlight colors?

more options

Chosen Solution

Hi,

  • How do I change highlighting colors?*
 You have to change the userContent.css file. You can also change buttons' icon with the userChrome.css file, but this is a little bit trickier.

Go to the following link to know everything about userContent.css and userChrome.css file:

http://www.askvg.com/list-of-files-that-can-be-hacked-to-configure-firefox/

Use following code in your newly created userContent.css file and change the colors you want by searching its hex code on google.


{{{ .searchwp-term-highlight1, .searchwp-term-highlight2, .searchwp-term-highlight3, .searchwp-term-highlight4, .searchwp-term-highlight5 {

 color: black !important;

}

.searchwp-term-highlight1 {

 background-color: #ffff00 !important;

}

.searchwp-term-highlight2 {

 background-color: #00ffff !important;

}

.searchwp-term-highlight3 {

 background-color: #00ff00 !important;

}

.searchwp-term-highlight4 {

 background-color: #ff7777 !important;

} }}}

If you don't like the look, you can always remove it from userContent.css and restart Firefox again.

Hope it will help you. You can always get back to me and I will see if I can help you.

Have a good day ahead.

more options

Thanks a lot! Very helpful and prompt reply!