Quick summary
Notion's built-in code block lets you insert, format, and share syntax-highlighted code directly inside any Notion page. You can select from dozens of programming languages, wrap long lines, and present clean code snippets without leaving your workspace.
Steps
- Hover over the position where you want to insert code and click the Add (+) icon that appears.
- Scroll down to the Code option in the block menu and select it.
- A code block is now inserted — click the top left menu to choose the appropriate language syntax highlighting.
- Search or select the programming language from the dropdown list.
- Click the top right dotted menu to access additional code block options.
- Enable Wrap code to prevent horizontal scrolling when lines are too long.
- Type your code into the block to have it displayed, shared, and copied by collaborators.



