Skip to content
This repository was archived by the owner on Mar 18, 2023. It is now read-only.

Documentation

Eduard Braun edited this page Mar 18, 2015 · 7 revisions

Page Contents


Installation

If you have not installed SearchWP yet you can do so from its add-on page on addons.mozilla.org.

After installation you have to restart Firefox for the changes to take effect. On startup SearchWP will automatically add the highlighter button to the tool-bar. It should be located directly after the search-box as visible in the screen-shot below and you're good to go. If for some reason you do not see the button you can try to add it manually as described below.

https://raw.githubusercontent.com/wiki/legege/searchwp/screenshots/doc_icon.png

Manually adding, moving or removing the highlighter button

If you want to manually (re-)add, move or remove the SearchWP highlighter button follow Mozilla's guidelines for customizing Firefox.

In short you have to either navigate to View > Toolbars > Customize... or right click somewhere on the tool-bar and choose Customize... from the context menu.

Find the highlighter button (labeled "Highlight") and drag it around with the mouse to a position of your liking. To remove the button simply pull it into the Additional Tools and Features area and exit the customization dialog (you'll still be able to control SearchWP via the options dialog or by using keyboard shortcuts).

Usage

  • Jump-to-word buttons are enabled by default. Just enter some text into the search-box and hit enter (or click somewhere outside the box). Your search terms will turn into buttons. Just click on any of those word buttons and SearchWP will search the first occurrence of this word on the currently loaded page for you!
  • To enable highlighting just click on the highlighter button. All occurrences of words entered in the search-box will be highlighted on the currently loaded page. Each search term will be highlighted in a different color so they are easily distinguishable.

To see some examples of SearchWP in action have a look at our screen shots page.

Configuration

To configure SearchWP open its options dialog. It's accessible from Firefox's Add-ons Manager (Tools > Add-ons). Find SearchWP in the Extensions tab and click Options. Alternatively you can access the options dialog by middle clicking the highlighter button.

  • Activate Highlighting – Lets you activate highlighting of search terms on the page (it's functionality is identical to clicking the highlighter button).

  • Highlighting is case sensitive – Makes the highlighting case sensitive (e.g. the search term searchwp wouldn't highlight the capitalized version SearchWP anymore). You can also activate case sensitive mode by holding the Ctrl or Alt key when clicking the highlighter button.

  • Minimum length for the words to be highlighted – Words shorter than the chosen number won't be highlighted on the page.

  • Group word tokens in a single menu – This activates an alternative way to display the jump-to-word buttons: Instead of turning the search terms themselves into buttons, a single (space-saving) button is added. Clicking this button expands the list of jump-to-word buttons.

Note that most of these options are also accessible by using the handy keyboard shortcuts and mouse combinations described in the next section!

Keyboard Shortcuts and Mouse Combinations

Keyboard shortcut(s) Mouse Combination(s)
Enable highlighting F8 left click (on highlighter button)
Enable case sensitive highlighting Ctrl + F8 or
Alt + F8
Ctrl + left click (on highlighter button) or
Alt + left click (on highlighter button)
Repeat last jump-to-word search F3 left click (on jump-to-word button) or
mouse wheel down (while on a jump-to-word button)
Repeat last jump-to-word search
(with reversed search direction)
Shift + F3 Shift + left click (on jump-to-word button) or
right click (on jump-to-word button) or
mouse wheel up (while on a jump-to-word button)
Select text in search box Ctrl + K right click (into search box)
Open options dialog middle click (on highlighter button)

Hidden Settings

There are some hidden settings that are not available in the options dialog or through any shortcut but might still be useful for a small portion of users.

To access them you need to edit your advanced Firefox settings (type about:config into the location bar and confirm with Enter). However if you're not familiar with the advanced settings dialog or don't understand what a setting does you shouldn't proceed.

extensions.searchwp.highlight.maxColorizedHighlights
Sets the maximum number of search terms that will be highlighted by SearchWP. If there are more occurrences of the search terms on the current page SearchWP switches to Firefox's built-in (monochrome) highlighting which is considerably faster. If you're experiencing performance problems on pages with many hits (and are okay with monochrome highlighting on these pages) you can lower this value.
extensions.searchwp.highlight.overlaps.displayMode
Determines what happens if two highlights overlap each other (e.g. suppose you're searching for bug and debugger).

Possible values:
0 (overwrite) – the highlighting is simply done "on top" of each other, effectively overwriting any previous highlighting color.
1 (fixed) – creates a solid color in the overlap region which is fixed.
2 (transparent) – highlights are partially transparent; therefore color values are added in the overlap region.
3 (multiply) – color values are multiplied in the overlap region which looks nice but has a considerable performance impact.
extensions.searchwp.highlight.tokensCount
Specifies the number of different highlighting colors used for search terms. The maximum value is 5 unless you add additional user defined highlighting colors.

Clone this wiki locally