@speed-highlight/core
    Preparing search index...

    Function highlightElement

    • Function

      Highlight a DOM element by getting the new innerHTML with highlightText

      Parameters

      • elm: Element

        The DOM element

      • Optionallang: ShjLanguage = ...

        The language of the code (seaching by default on elm for a 'shj-lang-' class)

      • Optionalmode: ShjDisplayMode

        The display mode (guessed by default)

      • Optionalopt: ShjOptions

        Customization options

      Returns Promise<void>

      highlightElement