Skip to content

readonlyEditor

readonlyEditor(container, options, onLoad?): PrismEditor<{ theme: EditorTheme; }>

Defined in: setups/index.ts:101

Same as minimalEditor, but also adds the copyButton, matchBrackets, highlightBracketPairs, matchTags, indentGuides, highlightSelectionMatches, and readOnlyCodeFolding extensions. No commands are added which makes this setup best used with the readOnly option set to true.

string | HTMLElement

SetupOptions

() => any

PrismEditor<{ theme: EditorTheme; }>