When users perform searches in your online output, the keywords that are found are highlighted in the topics. The background for each term found in a topic is highlighted in a different color. In Flare you can create styles for this purpose and change not only the color background, but other settings as well (e.g., font style, text decoration).
How to change the style of highlighted search terms
Complete one of the following sets of steps, depending on whether you want to use the Simplified view or Advanced view in the Stylesheet Editor.
If using the Simplified view:
(which means that the Simplified view is currently shown in the editor). If the button displays
instead, then click it.
and select Show Character Styles.example
Let's say that you create the following three classes: span.SearchHighlight1, span.SearchHighlight2, and span.SearchHighlight3. For span.SearchHighlight1, you change the background color to blue. For span.SearchHighlight2, you change the background color to orange. And for span.SearchHighlight3, you change the background color to yellow.
If a user enters "topic information help find" in the search field, the term "topic" will be displayed with a blue background everywhere it occurs in a topic. The term "information" will be displayed with an orange background, and the term "help" will be displayed with a yellow background. The term "find" will be displayed with the default background color specified by Flare (since you did not change it).
If another user enters "help find topic information" in the search field, the term "help" will be displayed with a blue background. The term "find" will be displayed with an orange background, and the term "topic" will be displayed with a yellow background. The term "information" will be displayed with the default background color specified by Flare (since you did not change it).
Use the following steps to import these classes from a Flare factory style sheet:
Use the following steps to create these classes manually:
. The New Style dialog opens.In the local toolbar of the editor, click
. The Properties dialog opens.
Use the Properties dialog to change values for the style's properties.
example
Let's say that you want to change the background color for the class span.SearchHighlight1. After you select that class on the left you can select the Font tab in the Properties dialog. Then click the down arrow in the Background field and choose the color you want.
If using the Advanced view:
(which means that the Advanced view is currently shown in the editor). If the button displays
instead, then click it.
and select Show Character Styles.example
Let's say that you create the following three classes: span.SearchHighlight1, span.SearchHighlight2, and span.SearchHighlight3. For span.SearchHighlight1, you change the background color to blue. For span.SearchHighlight2, you change the background color to orange. And for span.SearchHighlight3, you change the background color to yellow.
If a user enters "topic information help find" in the search field, the term "topic" will be displayed with a blue background everywhere it occurs in a topic. The term "information" will be displayed with an orange background, and the term "help" will be displayed with a yellow background. The term "find" will be displayed with the default background color specified by Flare (since you did not change it).
If another user enters "help find topic information" in the search field, the term "help" will be displayed with a blue background. The term "find" will be displayed with an orange background, and the term "topic" will be displayed with a yellow background. The term "information" will be displayed with the default background color specified by Flare (since you did not change it).
Use the following steps to import these classes from a Flare factory style sheet:
Use the following steps to create these classes manually:
. The New Style dialog opens.
on the upper-right side of the editor, select Show: Property Groups.example
Let's say that you want to change the background color for the class span.SearchHighlight1. After you select that class on the left you can double-click the Background property group on the right side of the editor. Then in the cell to the right of background-color, click the down arrow and choose the color you want.
to save your work.Note: You can also create and specify highlight styles for particular parent elements, such as h1. In order to do this, you need to open the style sheet in a simple text editor, such as Notepad. Then manually create the appropriate span classes for the tag (e.g., h1 span.SearchHighlight1, h1 span.SearchHighlight2).