prism-code-editor-lightweight
Version:
Lightweight, extensible code editor component for the web using Prism
11 lines (9 loc) • 381 B
TypeScript
import { BasicExtension } from '../../index.js';
/**
* Extension adding a `selectionChange` handler to highlight the closest bracket pair.
*
* You must to add a {@link BracketMatcher} to your editor for this extension to work.
*
* The `.active-bracket` CSS selector can be used to highlight the brackets.
*/
export declare const highlightBracketPairs: () => BasicExtension;