MCPcopy Create free account
hub / github.com/editablejs/editable / CodeBlockOptions

Interface CodeBlockOptions

packages/plugins/codeblock/src/options.ts:8–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6export type CodeBlockHotkey = string | ((e: KeyboardEvent) => boolean)
7
8export interface CodeBlockOptions {
9 locale?: Record<string, CodeBlockLocale>
10 hotkey?: CodeBlockHotkey
11 shortcuts?: string[] | boolean
12 plugins?: Extension[]
13 languages?: {
14 value: string
15 content?: string
16 plugin?: LanguageSupport
17 }[]
18}
19
20const CODEBLOCK_OPTIONS = new WeakMap<Editor, CodeBlockOptions>()
21

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…