Add a code snippet to a note
Keep a snippet’s formatting in a code block, choose its language, and copy the snippet to reuse elsewhere.
Use a code block for a snippet where line breaks and indentation matter. For example, keep a sample configuration beside the instructions that explain it.
- Open a note with editing access. On a blank line, type
/codeand choose Code Block. - Type or paste the snippet inside the block. Press Tab to insert two spaces when you need to indent a line.
- Open the language menu at the top of the block and choose the language that matches the snippet. Check the highlighting and indentation.
To reuse the snippet elsewhere, select Copy code at the top of the block. Paste it where you need it and check that the full snippet came through.
Ask Mainbase AI
Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.
Open the AI assistantCopy a question to get started
- How do I create a Kanban view?
- How do I invite a teammate?
- Why is a record missing from this view?