Search
OneNoteGem
  • Home
  • Addins
    • Windows Office Addins >
      • Gem for OneNote
      • OneNote Search Bar
      • OneNote Gem - Favorites
      • OneNote Batch
      • Pons for MindManager and OneNote
      • Mind Map for OneNote
      • Pons for Visio and OneNote
      • Row to OneNote
      • Auto OneNote
      • Favorite to OneNote
      • Bridge for EndNote and OneNote
      • Anchor to OneNote
      • Anchor to OneNote for PDF
      • Bring to OneNote
      • Gem Table for OneNote
    • Windows UWP Addins >
      • Gem Menu for OneNote UWP
      • CiteBoard for OneNote
      • OneReader
      • OneMind for Windows OneNote
      • OneNote Reminder Cloud (UWP)
      • OneNote Batch Cloud (UWP)
    • Mac Addins >
      • Gem Menu for Mac OneNote
      • CiteBoard for OneNote
      • Bring to Mac OneNote
      • OneMind for Mac OneNote
      • OneNote Reminder for Mac
      • OneNote Batch for Mac
      • Fix One for Mac - Fix OneNote Login, Sync Tools
    • Android Addins >
      • CiteBoard for OneNote
      • Fix One for Android - Fix OneNote Login, Sync Tools
    • Cross-Platform Addins >
      • OneNote Reminder
      • OneMind for OneNote
      • CiteBoard for OneNote
      • Fix One - Fix OneNote Login, Sync Tools
    • Markdown Addins >
      • Gem for OneNote
      • One Markdown
    • Mind Map Addins >
      • OneNote Gem - Favorites
      • Pons for MindManager and OneNote
      • Mind Map for OneNote
      • Pons for Visio and OneNote
      • OneMind for OneNote
    • Other Addins >
      • One Markdown
      • Clip to OneNote
      • WordNote
      • OneShare
      • Fix One for Windows - Fix OneNote Login, Sync Tools
  • Buy
  • Documents
  • FAQs
  • Templates
  • Support
  • Release
  • WordNote
Gem Table for OneNote
 
 
The table of merged cells for OneNote

UWP: Insert Syntax Highlighted Program Code in OneNote for Windows 10

2019-11-22 08:15
 
From many computer program IDEs, copying code, and then pasting it into OneNote, you will lose the color highlighted by the code syntax.
 
The Gem Menu for OneNote UWP now provides syntax highlighting of computer program code, and inserting it into the OneNote UWP.
Copy Code from the IDE, Open the Gem Menu Code Syntax Highlighting 
  1. At first, copy program code from IDE.
  2. Next, open Code Syntax Highlighting of Gem Menu. In Gem Menu for OneNote UWP, click “Insert” menu -> “Syntax Highlight” menu item.
Copy Code from the IDE, Open the Gem Menu Code Syntax Highlighting
 
Paste Code, Choose Program Source Code Type 
In the pop-up Code highlight window, paste the code.
Then, choose the type of code and editor theme.
Press OK, the syntax-highlighted code is generated and inserted into OneNote.
Paste Code, Choose Program Source Code Type
 
The Highlighted Code 
Finally, you see the code highlighted by the syntax inserted into the current page of OneNote for Windows 10.
The Highlighted Code
 
Options for Code Highlighting 
The Gem Menu for OneNote UWP now supports the following options.
 
Source Code (Computer Program Language code type):
  • ARM,
  • ASP,
  • Assembler,
  • AutoHotKey,
  • C and C++,
  • C#,
  • CSS,
  • DOS Batch,
  • HTML,
  • INI,
  • Java,
  • Javascript,
  • JSP,
  • Make,
  • Matlab,
  • Microsoft PowerShell,
  • Objective C,
  • Pascal,
  • Perl,
  • PHP,
  • Ruby,
  • Python,
  • PL/SQL,
  • TeX and LaTeX,
  • Transact-SQL,
  • Visual Basic,
  • XML,
  • R,
  • Swift
 
Editor Theme (Code color style):
  • Anjuta,
  • Eclipse,
  • Emacs,
  • Flash,
  • JEdit,
  • Vim,
  • Visual Studio,
  • Xcode
 
Font: Fonts used by the code
Size: Size of the code font
Shaping: The background color used by the code block.
Bold: The code is bold to display.
Frame up: Whether to use a border to frame the code.
Line Number: Add line number to the code.
Options for Code Highlighting
 
Demonstration
Use Gem Menu to highlight the computer program code and insert it into the OneNote UWP.
 

 
Download Gem Menu for OneNote UWP

Related Documents

  • UWP: How to Copy Code from PowerShell ISE to OneNote and Maintain Syntax Highlighting?
Command Line
Tag System
MindMap Add-Ins Comparison
Search Add-Ins Comparison
One Markdown Syntax
Table Formula
Gantt

Gem Menu Templates
Repair OneNote
OneNote Download
English website Chinese website
Mobile Site
Copyright © 2011-2025 Digital GemSoft. OneNoteGem.com All Rights Reserved.