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.
Parameters
Section titled “Parameters”container
Section titled “container”string | HTMLElement
options
Section titled “options”onLoad?
Section titled “onLoad?”() => any
Returns
Section titled “Returns”PrismEditor<{ theme: EditorTheme; }>