UNPKG

@jirkasa/code-box

Version:

Showcase code samples on the web with a container that lets users select and display different samples.

22 lines (21 loc) 775 B
import CodeView from "./CodeView"; /** Represents saved state of code view. */ declare class CodeViewMemento { /** Stores whether gutter was shown when memento was created. */ private showGutter; /** Stores whether line numbers were shown when memento was created. */ private showLineNumbers; /** Stores ranges of highlights along with custom CSS classes displayed in code view when memento was created. */ private highlights; /** * Creates new code view memento. * @param codeView Code view based on which should be memento created. */ constructor(codeView: CodeView); /** * Applies memento to code view. * @param codeView Code view. */ apply(codeView: CodeView): void; } export default CodeViewMemento;