How to code in notion



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.

πŸš€

Create your first interactive demo in minutes

No credit card required β€’ Start building today

Start free→

    This website uses cookies to enhance the user experience.

    AcceptDecline