[BoldWords WordList]Any Text[/BoldWords]

Hilites matching words with boldface HTML tags.

To automatically boldface matching words in portions of a template, put a BoldWords context around the text. Any words inside the context that match words in the WordList will automatically be surrounded by the HTML <B></B> tags so that they appear bold in the page.

Example (normally you would put the following text into a .tpl file on your server and use a web browser to link to it):

[BoldWords Grant,John]John and Grant helped write this product. John's cats are displayed on his personal web page.[/BoldWords]

Try It!

Anywhere the words Grant or John appear in the contained text, they are wrapped with <B>Grant</B> or <B>John</B>, respectively. You may use any [xxx] tags in the WordList or the container, as in [BoldWords [name]]Please embolden this [name][/BoldWords]. All [xxx] tags inside the context are first substituted for their real values, then WebCatalog searches for and boldfaces the matching words.

This context is handy for helping visitors easily see what they are searching for in a database. In the following example, the visitor has previously typed some text into a search form with a <input name="wodescriptiondata"> form variable. The [foundItems] will loop through all the matching records in the database, and words that match the search text will be displayed boldface in the [description] field.

Description: [BoldWords [wodescriptiondata]][description][/BoldWords]