showCodeBlockBuilder
Opens the code block builder modal.
Import:
import { showCodeBlockBuilder } from '@mnaoumov/obsidian-lib/modals/code-block-builder';Signature:
function showCodeBlockBuilder(params: ShowCodeBlockBuilderParams): Promise<string | null>Parameters:
| Parameter | Type | Description |
|---|---|---|
params |
ShowCodeBlockBuilderParams | The fields of the code block and how to present them. |
Returns: Promise<string | null> — A Promise that resolves with the code block when the user inserted it into the note, or with null when the modal was closed otherwise.
Links to this page: