codefoster | Insert Formatted Code into OneNote
Jeremy Foster
@codefoster

Insert Formatted Code into OneNote

by Jeremy Foster 30. March 2012 11:45

NoteHighLight on CodePlex

If you haven’t started using OneNote, you might want to consider it. You can create a notebook a free instance of SkyDrive and it makes note taking, collaboration, and sharing all very easy. The part I couldn’t live without is my ability to just hit [WIN + N] from anywhere in Windows and instantly get a new note. I don’t have to worry about saving it either. By default, it lands in my Unfiled Notes (in my SkyDrive notebook). I can move it to another location later for more organization if I want to, but honestly the searching in OneNote is so good, that I usually don’t bother. As long as I give it a good title, I’m always able to find it later. Actually, even if you paste images into your note, the indexer recognizes the text in your image and will even search on that!

On my Windows Phone 7, I can do the same thing. I pin a “New Note” tile to my start page and I can just hit that to create an unfiled note. The great thing is that both notes land in the same place… on my SkyDrive. So if I jot a note from the field, it’s available to me in Windows on my laptop later. Nice.

But I’m a software developer and I write a lot of code. Sometimes I just jot down little pieces of code. So I went looking for a syntax highlighter that worked in OneNote. I found it. It’s called NoteHighLight and it’s on CodePlex (here). The installer is in an asian font, so it was a blind install for me, but just choosing the default button on each page of the install wizard worked fine.

It installs into OneNote as its own tab. I decided I’d rather have it in the Insert menu, so I customized it like this…

image

Hitting Insert and then choosing one of these will get you a dialog like the following…

image

…and give you a nice way of typing or pasting in your code, and after completion, you’ll have something like this…

image

Happy note taking!

Tags:

Productivity

Comments (3) -

Steve Zarifis
Steve Zarifis United States
6/8/2012 12:35:54 PM #

Thanks for tip!  Love having the code formatted properly in OneNote.
cheers

Reply

casey
casey United States
12/3/2012 11:48:54 AM #

Installed using defaults. Shows installed in programs. Rebooted. Still no new ribbon tab. Tried to customize but do not see any of the code buttons. Windows 7 x64, One Note 2010.

Reply

Jeremy Foster
Jeremy Foster United States
12/21/2012 4:06:54 PM #

@casey, actually, I haven't used this plug in now for some time. I'm not sure what issue you're running into.

Reply

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

Feed Subscribe