Function: codeMirrorPlugin

codeMirrorPlugin(params?): RealmPlugin

A plugin that adds lets users edit code blocks with CodeMirror.

Parameters

NameTypeDescription
params?Object-
params.codeBlockLanguagesRecord<string, string>-
params.theme?"auto" | "light" | "dark" | DeepPartial<SandpackTheme>The theme of CodeMirrorEditor

Returns

RealmPlugin