How to Add Code Blocks and Request Features in Microsoft OneNote
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.

- 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.
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.
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.
Navigate to the official OneMore GitHub repository or website and download the latest setup file for your system.
Close Microsoft OneNote completely, run the downloaded installer, and follow the on-screen prompts to complete the installation.
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.

Submit and Vote for Feature Requests
Use Microsoft's official feedback channels to request features like OneNote for Linux and Dark Mode for the web app.
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. Visit the website: Go to the official WPS Office website using your preferred browser.
- 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. Install and launch: Run the setup file, follow the installation prompts, and launch WPS Office to start creating formatted documents immediately.

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.




