Function: codeMirrorPlugin()
codeMirrorPlugin(
params
?):RealmPlugin
A plugin that adds lets users edit code blocks with CodeMirror.
Parameters
Parameter | Type | Description |
---|---|---|
params ? | object | - |
params.autoLoadLanguageSupport ? | boolean | Whether or not to try to dynamically load the code block language support. Disable if you want to manually pass the supported languages. |
params.codeBlockLanguages ? | Record <string , string > | - |
params.codeMirrorExtensions ? | Extension [] | Optional, additional CodeMirror extensions to load in the diff/source mode. |