Skip to content

Edit codeblock

Falcion edited this page Nov 8, 2024 · 3 revisions

The "Edit Codeblock" modal can be invoked by right-clicking inside a fenced block (or "codeblock" defined by ```). This opens a "mini-editor" page using the code editor module^1, allowing users to work on and edit the codeblock outside of the limited "markdown" view and confined spaces, instead providing a full code editor experience.

To close the codeblock editor, press Escape. All changes save automatically, and if the codeblock is empty, it will not be deleted.

Preview: modal_preview

Note

To apply syntax highlighting, specify the language in the opening fences, just like in standard Markdown.

Clone this wiki locally