Find in site
Office OneNote Gem Add-Ins
  • Home
  • Addins
    • AddIns Internal (Windows10,8,7) >
      • Bridge for EndNote and OneNote
      • Gem for OneNote >
        • OneNote Gem - Excel Editor
        • Translate Gem for OneNote
      • Mind Map for OneNote
      • OneNote Gem - Favorites >
        • OneNote Gem - Keyword Tags
        • OneNote Mind Map
    • Web and Link AddIns (Windows) >
      • Anchor to OneNote >
        • Anchor to OneNote for Acrobat >
          • Anchor to OneNote for Adobe Acrobat Reader
          • Anchor to OneNote for Adobe Acrobat Reader DC
        • Anchor to OneNote for Chrome
        • Anchor to OneNote for Firefox
        • Anchor to OneNote for Access
        • Anchor to OneNote for Excel
        • Anchor to OneNote for Opera
        • Anchor to OneNote for PowerPoint
        • Anchor to OneNote for Outlook
        • Anchor to OneNote for Project
        • Anchor to OneNote for Publisher
        • Anchor to OneNote for Visio
        • Anchor to OneNote for Word
      • Anchor to OneNote for PDF
      • Bring to OneNote >
        • Bring to OneNote for Acrobat
        • Bring to OneNote for Firefox
        • Bring to OneNote for Thunderbird
        • Bring to OneNote for Chrome >
          • Install Bring to OneNote for Chrome
        • Bring to OneNote for Opera
        • Bring to OneNote for Internet Explorer
        • Bring to OneNote for Safari
        • Bring to OneNote for Windows Explorer
        • Bring to OneNote for Word
        • Bring to OneNote for Excel
        • Bring to OneNote for PowerPoint
        • Bring to OneNote for Visio
        • Register Bring to OneNote
      • Bring to Mac OneNote
      • Favorite to OneNote >
        • Favorite to OneNote for Chrome >
          • Install Favorite to OneNote for Chrome
        • Favorite to OneNote for Firefox
        • Favorite to OneNote for Internet Explorer
        • Favorite to OneNote for Opera
        • Favorite to OneNote for Windows Explorer
        • Image to OneNote
      • Row to OneNote >
        • Row to OneNote for Access
        • Row to OneNote for Excel
        • Row to OneNote for Project
    • Mind Map AddIns (Windows10,8,7) >
      • Mind Map for OneNote
      • OneMind for Office OneNote
      • OneNote Gem - Favorites
      • Pons for MindManager and OneNote
      • Pons for Visio and OneNote
    • AddOns External (Windows10,8,7) >
      • Auto OneNote
      • OneNote Batch >
        • OneNote Batch Command Lines
        • Google Keep Importer
        • Register OneNote Batch
      • OneNote Reminder
      • OneNote Search Bar
      • Fix One
    • Markdown AddIns (Windows) >
      • One Markdown
      • Gem for OneNote
    • Mac OneNote AddIns (MACOS) >
      • Gem Menu for Mac OneNote
      • OneMind for Mac OneNote
      • Bring to Mac OneNote >
        • Bring to OneNote for Mac Safari
        • Bring to OneNote for Mac Chrome
        • Bring to OneNote for Mac Firefox
    • UWP OneNote AddIns (Windows 10) >
      • Gem Menu for OneNote UWP
      • OneMind for OneNote UWP
      • OneReader
    • Cross-Platform AddIns >
      • OneMind for OneNote >
        • OneMind for Mac OneNote
        • OneMind for Windows Office OneNote 2016, 2013, 2010
        • OneMind for Windows OneNote
      • CiteBoard for OneNote
  • Download
  • Buy
  • Documents
    • Document
    • FAQs
    • Markdown
    • Formula for OneNote Table
    • Mind Map AddIns
    • Evernote Documents
    • OneNote Download
    • Release
  • Support
  • Templates
    • OneNote Templates
    • Gem Menu Templates
  • ⭐ WordNote

Addin for Mac OneNote



Read More

OneNote insert highlight syntax source code

1/30/2013

25 Comments

 
Gem for OneNote now is provided insert highlight syntax code feature.
Syntax Highlight
Click the "Syntax Highlight" feature in Insert group in Edit tab.
Source Code Syntax Highlight Window
In the "Source Code Syntax Highlight" dialog, we can choose the options.

Souce code type : 
ARM, ASP, Assembler, AutoHotKey, Bash, C and C++, C#, CSS, DOS Batch, HTML, Java, INI, Javascript, Jsp, Make, Matlab, Microsoft PwerShell, MSSQL, Object C, Pascal, Perl, PHP, Python, Ruby, PL/SQL, Tex and LaTeX, Transact-SQL, Visual Basic, XML.

Editor theme: 
Eclipse, Emacs, Flash, Jedit, Visual Studio.

We also use a text box to frame up the code, and can set the code to minimum zise font too.

Syntax Highlight Source Code
We also can create highlight source code with line number too.
Syntax Highlight with Line Number
25 Comments
Peter
5/1/2013 01:47:56

This looks great! Are there any plans to include VB source code syntax highlighting?

Thanks,
Peter

Reply
Robin Siebler
5/29/2013 08:23:32

I'd love to see AutoHotKey/AutoIT, and Shell/Batch.

Reply
G. D. Milner
1/4/2014 12:17:18

I really wanted to use this Gem but it slogged down my OneNote to the point where it was unusable, so I had to uninstall it.

Reply
Eric L
8/31/2014 22:24:37

This is AWESOME!!!

I have a couple of suggestions;
1) highlight existing text and apply syntax highlighting. (much like how styles work).
2) if inserted with line numbers, the ability to copy and paste that text without the line numbers (this might be kind of tricky because you have to hook into paste operation)

Reply
Eric L
9/1/2014 00:19:33

There is an issue with the spellcheck, normally when you use this to insert code, the spell checking on that section is turned off (eg no red squiggly) I love that. However, if you insert a second block of code on the same page the spellcheck is turned on.

Reply
G.K. Bren link
9/24/2014 08:56:51

I'm looking forward to trying this - (and thanks for adding VB!)
But once I have it in the Syntax Highlight box with line numbers, how can I get it back out without the line numbers? Looking for a solution similar to what is seen on the coding forums like Stack Overflow.

Reply
James
9/24/2014 11:05:30

Sorry, There still no solution to do this.

Reply
Chansoo
3/10/2015 14:06:35

I want to use the syntax source code for matlab. Do you have a plan to support matlab code in this item?

Reply
Doug
4/16/2015 06:45:46

Is there support for powershell? will there be?

Reply
Beavis
5/9/2015 11:23:17

+1 for Powershell!

Reply
Mike
9/10/2015 04:27:23

It would be really nice if there was a JSON styling. You can use JS, but that's not quite what I want - ideally the property names would be highlighted in a different color to the values.

Reply
Thomas
3/21/2016 08:30:35

The first try was really good. But when i try with another text (SQLStatement) then the result is the same text as the first try...
Sometime when i change the Source Code-Option then it works but not everytime. So the tool cant be used :(

Reply
JimmyD
5/14/2016 00:42:51

This feature is awesome.It would be better could choose code font while copy-pasting the code into the textrea instead of click ok and reformat the code , not everyone like the courier-new font (i would prefer consolas).

Reply
Ivan Arnold
8/8/2016 11:41:21

Hi thinking about purchasing. Any chance you will add fortran highlighting? (I know, it's not a very popular one.)

Reply
gaurav
8/10/2016 05:44:45

I've purchased Gem bundle.

Can you please add support for REXX also.
It is needed urgently.

Reply
floydthebarber
8/11/2016 05:38:46

I would love to see support for R. Thank you!

Reply
Morow
1/3/2017 04:25:37

Syntax Highlight
Even is Spell check is disabled I always have the red lines under the code.

Reply
Quan
4/25/2017 19:28:56

the line number creates a itemized list instead of just numbers, so this results to skipping numbering whitespace. Is there a fix for this?

Reply
pslxndr
12/13/2017 19:02:25

There is a problem with displaying Russian letters when using code highlighting. This will be fixed, or I do something wrong? Thx.

Reply
James
12/13/2017 19:14:02

Please try test in a new page.

Reply
pslxndr
12/13/2017 19:58:26

Checked on the new page, the same thing. For the place of Russian letters I get "? ???????? ?????"

zml
2/6/2018 04:47:59

Chinese characters will turn into garbage characters when using code highlighting. Would this be fixed?

Reply
oki
9/6/2018 23:57:39

how can I apply the highlighter on codefragments, which were already inserted to onenote and needs to formatted now?
I'd like to mark the codefragments and apply the code formatter (instead of inserting new formatted text)

Reply
Jason
1/17/2019 09:11:31

Does this support Ada highlighting? I know its not the most popular language but I know other people where I work would really like this feature.

Reply
June
12/9/2019 08:12:58

I would like a feature that the font and its size coud be customized. Currently, the default size is too small and it is kind of troublesome to adjust the size for each of code block

Reply



Leave a Reply.

    RSS Feed

    Table of Contents

    Document Table of Contents
    ​OneNote FAQs

    Categories

    All
    Anchor To Onenote
    Auto OneNote
    Bring To Onenote
    Bring To Onenote Tips
    Browser Addons
    CiteBoard
    Favorite To Onenote
    Fix One
    Mac Gem Menu
    Mind Map For OneNote
    Notegem Monitor
    Office Tips
    One Markdown
    OneMind
    Onenote
    Onenote Batch
    Onenote Batch Tip
    Onenote Favorites
    Onenote Favorites Help
    Onenote Gem
    Onenote Gem Tips
    OneNote Reminder
    Pons For MindManager
    Pons For Visio
    Row To Onenote
    Search Bar
    Send To Onenote
    UWP Gem Menu

Command Line 
OneNote Tag Tree
Mind Map Tool

MindMap Add-Ins Comparison
One Markdown Syntax
OneNote Table Formula
OneNote Gantt

Repair OneNote
Add-Ins Documents
OneNote FAQs
OneNote Download
Release


View and Commert PDF in OneNote

MOBILE SITE
Copyright © 2011-2020 Digital GemSoft Ltd. OneNoteGem.com All Rights Reserved.