highlightTagPairsOnHover
highlightTagPairsOnHover(
container):void
Defined in: client/hover.ts:171
Highlights tag pairs when a tag name is hovered. Clicking on a pair keeps it highlighted. Clicking anywhere inside the container removes the highlight.
This will match all tags under the container together. If there are multiple code blocks underneath, then tags from different code blocks might get matched together.
Note that there should not be any editors inside your container as this can cause issues.
Parameters
Section titled “Parameters”container
Section titled “container”Container to add tag pair highlighting to.
HTMLElement | PrismCodeBlock
Returns
Section titled “Returns”void