How to create a code block in Markdown
Permalink to heading How to create a code block in MarkdownYou are looking for ` key on your keyboard.
Hit that key 3 times on top of a paragraph where you want your code block to start. And hit Enter key:

To create a code block out of existing paragraphs, place 3 backticks above the paragraph you want your code block to start, and place another 3 backticks below the paragraph you want your code block to end:

Behavioural change of code block in Zuunote
Permalink to heading Behavioural change of code block in ZuunoteIn Zuunote, placing 3 backticks won't cause entire content below them to be in a code block. This is contrary to default behaviour in Markdown as seen in https://markdown-it.github.io/:

Syntax highlighting code blocks in Markdown
Permalink to heading Syntax highlighting code blocks in MarkdownThe official practice to add color highlighting on a code block's content according to a particular programming language grammar is to enter the language's short form name right after the open fence's backticks. And Zuunote does not break away from this tradition:

You can also specify the language when creating a code block:

Syntax-highlighting in Zuunote is powered by Lezer library that's also used in Codemirror.
Drag, highlight and delete
Permalink to heading Drag, highlight and deleteIn Zuunote website, I showed a demo when user drag, highlight and delete a code block across its fences to outer content, the code block will be removed due to the fences being treated and remained as plain-texts. Well, it turns out to be a gnarly undertaking once beyond the happy path. On launch, such use case will behave similar to editors like Tiptap:
