Den här webbplatsen har begränsad funktionalitet medan vi utför underhåll för att förbättra din upplevelse. Om en artikel inte löser ditt problem och du vill ställa en fråga har vi vår gemenskap som väntar på att hjälpa dig på @FirefoxSupport på Twitter, /r/firefox på Reddit.

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

searching multiple words within page separately

  • 5 svar
  • 1 har detta problem
  • 341 visningar
  • Senaste svar av 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.

Vald lösning

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.

Läs svaret i sitt sammanhang 👍 2

Alla svar (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

Vald lösning

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!