logo
search
Others

How to Add Code Blocks and Request Features in Microsoft OneNote

Huma Ashraf ChHuma Ashraf Ch Oct 12, 2026 869 views

Question details

Users want to format code blocks with syntax highlighting in OneNote and are looking for ways to request missing platform features, such as a native Linux application and dark mode for the web app.

Adding Code Blocks and Requesting New Features in Microsoft OneNote
Product
Microsoft OneNote
Device & OS
not provided
Scenario
Users need to document programming code snippets clearly and require cross-platform accessibility across Linux and web environments.
Observed behavior
Native OneNote currently lacks built-in syntax highlighting for code blocks, does not offer a dedicated Linux desktop client, and is missing a dark mode option in its web version.
Before you start

Ensure you have the desktop version of Microsoft OneNote installed and fully updated, as third-party add-ins cannot be installed on the web or Windows 10 UWP versions.

Solution 1Recommended

Add Code Highlighting Using the OneMore Add-in

Use a trusted third-party add-in to enable syntax highlighting and structured code block formatting within your desktop OneNote application.

Since Microsoft OneNote does not support native code blocks, developers have created third-party tools to fill this gap. The OneMore add-in is a popular solution that includes a dedicated Colorize command to parse and highlight programming syntax.

1
Download the add-in

Navigate to the official OneMore GitHub repository or website and download the latest setup file for your system.

2
Install OneMore

Close Microsoft OneNote completely, run the downloaded installer, and follow the on-screen prompts to complete the installation.

3
Apply syntax highlighting

Open OneNote, highlight the raw code text in your notes, navigate to the newly added OneMore tab on the ribbon, and click the 'Colorize' command to format it as a code block.

Add Code Highlighting Using the OneMore Add-in
Security Consideration: Always evaluate add-in security and compatibility before installing third-party software on your device, especially in corporate environments.
Free Microsoft Office alternative

Switch to WPS Office for a Lightweight and Cross-Platform Experience

If you are frustrated by the lack of Linux support in Microsoft Office apps, consider switching to WPS Office. It provides a robust, lightweight suite with excellent compatibility and is fully supported on Linux, Windows, and macOS.

  1. 1. Visit the website: Go to the official WPS Office website using your preferred browser.
  2. 2. Download the installer: Click on the 'Free Download' button to get the appropriate installer for your operating system, including Linux (.deb or .rpm).
  3. 3. Install and launch: Run the setup file, follow the installation prompts, and launch WPS Office to start creating formatted documents immediately.
Native support for Linux distributions along with Windows, macOS, iOS, and AndroidHighly compatible with Microsoft Word, Excel, and PowerPoint file formatsLightweight installation with a familiar, easy-to-navigate user interfaceBuilt-in dark mode and reading modes to reduce eye strain
microsoft office alternative - wps office

Frequently Asked Questions

Will Microsoft release a native OneNote app for Linux?

Currently, Microsoft has not announced an official OneNote desktop client for Linux. Linux users typically rely on the OneNote web application or community-developed unofficial electron wrappers.

How can I enable dark mode in OneNote?

Dark mode is available in the desktop and mobile versions of OneNote via the application settings (File > Account > Office Theme). However, the OneNote web application does not currently support a native dark mode.

Are there built-in code blocks in OneNote?

No, OneNote does not natively support markdown-style code blocks or syntax highlighting. Users must rely on formatting text manually or using third-party add-ins like OneMore to achieve colorized syntax.

Is the OneMore add-in safe to use?

OneMore is a widely used, open-source add-in. However, as with any third-party software, you should review its GitHub repository, evaluate your organization's security policies, and ensure you download it from the official source.