Could not write code in logseq? here is screen record via gif

did I do something wrong?

to create a code block you need to add the code on separate lines. What are you doing here is in-line code.

Here is an example
Peek 2021-10-18 15-33

1 Like

is seems i could not " add the code on separate lines",each time i press enter, it just jump to the end of code block. but click the code block and edit code inside did work.

1 Like

The Enter key is used to create a new block. That’s why it’s skipping your codeblock. To add a new line use Shift+Enter.

I would recommend reading the documentation starting with “Getting started