Enhance Notion Pages: Embed Code Snippets, Widgets & External Content for Better Functionality & Tool Integration

Learn how to enhance the functionality and integration of your Notion pages by embedding code snippets, widgets, and external content. Find step-by-step instructions here.
Notionry
We ♥ Notion
Header image

New to Notion?

Check out Notion's new template marketplace and find the perfect template for your needs!

How to Embed Code Snippets, Widgets, or External Content into Your Notion Pages

Notion is a powerful Productivity tool that lets you create and organize content in a flexible and customizable way. One of Notion’s standout features is its ability to integrate with other tools and services by embedding code snippets, widgets, or external content. This Functionality enhances your pages and enables a seamless integration with your favorite tools. In this article, we’ll explore how to embed code snippets, widgets, and external content into your Notion pages using updated methods and best practices.

Embedding Code Snippets

Embedding code snippets in Notion makes it easy to share and display code in a clean, readable, and interactive format. Notion supports a wide range of programming languages, which makes it an ideal platform for showcasing your code. Follow these steps to embed a code snippet:

  1. Open your Notion page and navigate to the location where you want to add the code snippet.
  2. Type /code (or click the + icon and select Code from the Formatting & Media section) to insert a code block.
  3. Select the desired Programming language from the dropdown menu. Notion supports languages including Python, JavaScript, Java, HTML, CSS, and many others.
  4. Paste your code into the block.
  5. To adjust settings such as syntax highlighting or line numbering, click on the three-dot menu in the upper right corner of the code block and choose additional options.

By following these steps, you can have your code presented in a visually appealing and easily readable format.

Embedding Widgets

Notion makes it simple to integrate interactive widgets, helping you visualize data, interact with external services, and enrich your page with rich media. Many providers now offer responsive embeds that work well within Notion. To embed a widget:

  1. Open your Notion page and navigate to where you’d like to add the widget.
  2. Type /embed (or click the + icon and select Embed from the options) to insert an embed block.
  3. Search for the widget you want to add (for example, Google Maps, Figma, or Typeform).
  4. Follow the widget provider’s instructions to get a shareable URL or embed code.
  5. Paste the URL or embed code into the block.
  6. Resize or realign the block as needed by dragging the block edges or using block settings.

Embedding widgets allows you to integrate a variety of tools directly into your Notion pages, enhancing productivity and collaboration.

Embedding External Content

Notion also offers support for embedding various types of external content, such as videos, images, audio files, and more. This feature lets you incorporate media from platforms like YouTube, Spotify, or Pinterest directly into your pages. To embed external content:

  1. Open your Notion page and go to the spot where you want to embed the content.
  2. Type /embed (or use the + icon and choose Embed) to add an embed block.
  3. Identify the type of content you wish to embed—such as a video, image, or audio file.
  4. Follow the content provider’s instructions to retrieve a URL or embed code.
  5. Paste the URL or embed code into the block.
  6. Adjust the block’s size and alignment by dragging its edges or using the settings menu.

By embedding external content in your Notion pages, you can bring together resources from multiple platforms, creating richer and more engaging content.

Conclusion

Notion’s ability to embed code snippets, widgets, and external content significantly boosts its functionality and allows for deeper integration with various services. Whether you need to share code, display dynamic widgets, or incorporate media from external sources, Notion offers a flexible platform to suit these needs. By following the updated steps outlined in this guide, you can create a more efficient and integrated workflow within your Notion pages.

Did this page help you?
Share this post