Open topic with navigation

# Search and Highlight Terms

KeyView can use the highlighting API to find and highlight specified text strings in the HTML output. Only text strings that exactly match the search term are highlighted. For example, if the term "house" is specified, the string "house" would be highlighted in house, houses, and housed, but would not be highlighted in the term "housing." You can define the text attributes used to highlight the text, such as bold, red, or underlined, and the text’s target character set.

If a specified term contains HTML code, it is not found. For example, if the phrase "`weekly schedule`" was specified, the following string in the output HTML would not be found:

    weekly <b>schedule</b>

If you specify multiple terms, and some terms are subsets of other terms, Micro Focus recommends that you specify the superset first. For example,

    ["North American car manufacturers" "car manufacturers" "car"]

To specify search terms by using the C API

1. Define the `KVHTMLHighlight` data structure specifying the list of terms, the highlighting attributes, and the case-sensitivity Boolean. SeeKVHTMLHighlight.

2. Call the `fpSetHighlight()` function. See KVHTMLSetHighlight().

© 2006-2018 EntIT Software LLC, a Micro Focus company | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm