How to use the new code block feature more efficiently?

I really like the new code block highlighting feature, but I went up a problem.

When I try to paste a paragraph of code into a item enclosed by ``` , it was automatically separated into a lot of items because there are lots of space character in the code text, which stops the function from taking effect.

an example:

How can I keep all those content in a single item when I paste?

1 Like

i keep my snippets in ‘Notes’ with an outlined item being just a title for a snippet

1 Like

Yes, @errno is right, you should keep most paragraphs/multi-line stuff in notes. In items, a new line will be interpreted as creating a new item.

1 Like

That’s exactly what I need, thanks a lot!

Problem solved, thanks a lot!

1 Like