File Content Extraction 26.2
HTML Export SDK C Programming Guide

# KVHTMLHighlight

This structure defines the search terms that are found and highlighted in the HTML output. It is initialized by calling `KVHTMLSetHighlight()` and is defined in `kvtypes.h`. See KVHTMLSetHighlight().

    typedef struct tag_KVHTMLHighlight
    {
        KVStructHeader;
        char           **ppHLTerms;
        int            nSize;
        KVCharset      eCharset;
        char           *pHLStart;
        char           *pHLEnd;
        BOOL           bMatchCase;
        int            nReserved;
        void           *pReserved;
    }
    KVHTMLHighlight;

## Member Descriptions

`KVStructHeader` | The version of the structure. See KVStructHead.
`ppHLTerms` | An array of terms to be found and highlighted in the HTML output.
`nSize` | The number of terms to be found and highlighted in the HTML output.
`eCharset` | The character set of the terms. The available character sets are enumerated in `KVCharSet` in `kvcharset.h`. See Convert Character Sets.
`pHLStart` | The start tag that specifies the text attributes used to highlight the text string. NOTE: If you output images as SVG, File Content Extraction uses this tag to highlight the terms found in images, so you must make sure that the tag works as expected. In particular, CSS that applies a style to a class does not affect a tag with that class that is inside an SVG. For example: `<span style="color:#ff0000;background-color:#00FF00;">`
`pHLEnd` | The end tag used to close the highlighting start tag. The end tag for the example above would be `</span>`
`bMatchCase` | This Boolean applies only to searches on documents with a target character set of 1252. If this Boolean is set, the text search is case sensitive. By default, the text search is case insensitive.
`nReserved` | Reserved for future use.
`pReserved` | Reserved for future use.

Copyright 1997-2026 Open Text
Version 26.2 | Last updated April 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: File Content Extraction 26.2

Topic Title: KVHTMLHighlight