LiveDemo - Open-source alternative to Storylane, Navattic, and Arcade | Product Hunt

How to code in notion


This guide is an interactive LiveDemo. Create interactive demos of your own product: Interactive demo software · Interactive help center guides · Start free


How to code in notion: step-by-step guide

  1. Hover over the position you wish to enter code and click on the Add (+) icon that appears.

  2. Scroll down to Code.

  3. You have now inserted a code block! Click on the top left menu to select the appropriate language syntax highlighting.

  4. Search or select the language from the list.

  5. Use the top right dotted menu for more options.

  6. One such useful option is Wrap code to avoid scrolling sideways when lines get too long.

  7. Enter your code to be seen, shared, copied and appreciated.

Quick answer: To code in Notion, hover over your desired position and click the Add icon. Scroll down to Code to insert a block, then select your language syntax highlighting from the top left menu. Use the top right dotted menu to wrap code and enter your code to share and copy.

About this Notion tutorial

Insert and format code blocks in Notion easily. Select language syntax highlighting and use wrap code options to avoid sideways scrolling. This guide shows how to code in notion in 7 steps, starting with "Hover over the position you wish to enter code and click on the Add (+) icon that appears" and finishing with "Enter your code to be seen, shared, copied and appreciated". The interactive demo above is a click-through copy of the real Notion interface, so you can rehearse each step before doing it in your own account.

Frequently asked questions

How many steps does it take to code in notion?

7 steps. Each one is listed in order above, and the demo highlights exactly where to click.

Can I try it without changing my own account?

Yes. Clicking through the demo doesn't touch your Notion data or settings. Once you know the flow, repeat it in your own workspace.

This tutorial is filed under Notion. Related guides: How to comment in notion, How to Connect Baremetrics to Notion Using Zapier and How to Connect Buffer Analytics to Notion Using Zapier. Last reviewed 05 Oct 2026.

LiveDemo - Open-source alternative to Storylane, Navattic, and Arcade | Product Hunt
🚀

Create your first interactive demo in minutes

No credit card required • Start building today

Start free→