# How To Add Code Block In Confluence

> To add a code block in Confluence, click the plus button in the editor toolbar, search and select code snippet, paste or type your code, and click publish to share.

Canonical: https://livedemo.ai/tutorials/how-to-add-code-block-in-confluence/
Apps: Confluence
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a2cefa98365d08657043f/preview?step=1

## Steps

1. Click the '+' button in the editor toolbar while editing your Confluence page.
2. Type or search “Code block” and select "Code snippet" from the dropdown menu.
3. Paste or type your code into the block.
4. Click "Publish" when you're ready to share your code with the team.
