# XMLmind XML Editor - Online Help

### 5.6. Web search options

This pane allows to configure the entries of the Web Search menu.

Clicking Add or Edit displays a dialog box (see below) allowing to add or modify a web search service specification.

Clicking Remove removes the web search service specification selected in the list.

Clicking Reset restores the stock list[24] of web search service specifications.

Figure 9.2. Dialog box allowing to add or edit a web search service specification

A web search service is specified by:

- A (case-insensitive) symbolic name. Example: `Google`.

- A request URI containing variables. Example: `http://www.google.com/search?q=`${searched}`&hl=`${locale2}`&lr=lang_`${lang2}``.

The following variables are substituted with their values when the web browser is invoked by XXE to open the URI:

Variable | Description
--- | ---
`${searched}` | The searched text is the current text selection.
`${locale}` | The language of the user interface (GUI) of XXE.
`${locale2}` | Same as `${locale}`, but just the first two ISO 639-1 letter codes. Example: if `${locale}` is `fr-CA`, then `${locale2}` is `fr`.
`${lang}` | The language of searched text. This language is automatically determined by XXE using a number of rules in XMLmind XML Editor - Commands (for example, lookup of attribute `xml:lang`).
`${lang2}` | Same as `${lang}`, but just the first two ISO 639-1 letter codes.

Note that the value of a variable is automatically escaped if needed too. For example, "`vin rosé`" becomes "`vin%20ros%C3%A9`".

### Tip

Notice that this pane does not allow to specify keyboard shortcuts. If you want to use keyboard shortcuts for searching the web, please refer to Using keyboard shortcuts for searching the web.

[24] This list is specified in system property WebSearch.services in XMLmind XML Editor - Commands. When this system property has not been defined, a default list comprising Google, Wikipedia, etc, is used.