The Code Block block belongs to Workspace Data & Logic. Add a block of code with syntax highlighting.
What it does
Add a block of code with syntax highlighting.
When to use it
- Organize structured information.
- Track work, dates, decisions, or data inside a page.
- Turn notes into a more actionable page.
How to add it
- Open a Workspace page where you have edit access.
- Type
/or openExplore blocks. - Choose
Code Block. - Fill in the content, link, file, or settings shown by the block.
- Use
Block Settingswhen the block exposes additional options.
Tips
- Do not store secrets, tokens, passwords, or private credentials in a Workspace page.
- Use Board for draggable task workflows.
- Use Table for row-and-column information.
- Keep labels short so the page remains readable.
Limitations
- You need Editor or Admin access to add or change this block.
- Viewer access allows reading and commenting where comments are enabled, but not editing block content.
- If the block depends on an external file, link, or service, that source must be accessible to the people viewing the page.
Related guides
FAQ
What is the Code Block block for? Add a block of code with syntax highlighting.
Can Viewers edit a Code Block block? No. Viewers can view and comment only.