# Results text keyword highlighter

```
Layout options -> Results Behaviour -> Highlighter and More features
```

## Live results list highlighting

![](/files/-MGguzl96CSyLqdB_fkF)

It is possible to highlight the search phrase in the **live results** list. Within these options you can change the:

* Highlighter text color and background
* and to highlight whole words or partial words as well

## Single result page keyword highlighting

{% hint style="warning" %}
The single result (clicking a result on the live results list) is not the same as the search results page. This feature does not work on the search results page.
{% endhint %}

![](/files/-MGgvf9zRGaLsDKMvW1r)

### Scrolling to the first keyword match

Whenever the `Scroll to the first keyword match if possible?` option is enabled, the plugin will try to scroll to the first keyword match, after redirecting to the single result.

If you want to programatically specify a part of the result page to apply the highlighter and scroll feature on, then use the `Result page content jQuery element selector` option. This is useful when the search phrase might appear outside of the post body container (in a widget, footer or menu etc..), and you want to make sure those appearances are not highlighted.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.ajaxsearchpro.com/layout-settings/search-phrase-highlighter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
