ZUI

Search documentation

Find a page or a heading.

Editor Code Block

A code block with a language picker, a CodeMirror pane while editing and a highlighted card when read.

tsx

Installation

bash

Usage

tsx
tsx

codeBlock adds the codeBlock block, whose language and code attributes the editing pane and the highlighted card both read. Its slash item is "Code block" and its command insertCodeBlock takes an optional language and code.

Run the command on the editor that Editor hands to onReady, as Document Editor shows:

tsx

The Viewer draws the same block, with the same feature in its features, wherever a stored document is only read.