Skip to content

highlightBracketPairsOnHover

highlightBracketPairsOnHover(codeBlock, pairs): void

Defined in: client/hover.ts:121

Highlights bracket pairs when hovered. Clicking on a pair keeps it highlighted. Clicking anywhere inside the code block removes the highlight.

PrismCodeBlock

Code block to add bracket pair highlighting to.

string = "()[]{}"

Which characters to match together. The opening character must be followed by the corresponding closing character. Defaults to ”()[]{}”.

void