prism-code-editor
Version:
Lightweight, extensible code editor component for the web using Prism
11 lines (10 loc) • 397 B
TypeScript
import { BasicExtension } from '../../index.js';
/**
* Extension adding a `selectionChange` handler to highlight the bracker pair closest to
* the cursor.
*
* 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;