An update to the CodeToOneNote Visual Studio addin

David has been busy adding to his CodeTo1Note addin. He sent me the update (below my signature below, [update -  get it here :] -it includes an MHT file with setup and how to information) and here's what is new:


I’ve added an enhancement to CodeTo1Note which provides for User specified preferences (colors, tab width, and Line Numbers On/Off ) in an xml file.

A schema validation is performed on the xml. If a violation is detected, defaults are applied to override the user preferences thus guaranteeing a successful import.

The documentation [which is included in the download file - John] has been updated to reflect this change. I’ll likely release one more version which will be Visual Studio 2010 compatible after the holidays early next year. [John's note: this includes a VS 2010 version.]


I am glad David got the VS 2010 version done as well. I don't have any VS 2008 machines left and wanted to incorporate this into my daily work!

Here's a quick preview of what code looks like when sent to OneNote:


It's probably a preview of something else, if you look closely enough 🙂

One other comment: I had to go to the DLL and “Unblock” it to get VS to load it.  Right click the DLL | Properties | there is an unblock button near the bottom.  I was getting error 80131515 in case this helps you.

Questions, comments, concerns and criticisms always welcome,

Comments (5)

  1. Cory says:

    I don't have the option to Unblock but I am getting error 80131515.  Any ideas?

  2. DavidDotNet says:

    Error 80131515 occurs when trying to load an Visual Studio Addin from a network hsare. Copy the Addin to local drive C:  and "Unblock" it as described in the doc.

  3. David A says:

    It would be nice if CodeTo1Note supported C++ (.cpp) syntax.

  4. Tim M says:

    Any chance of updating to support C and C++, or putting the source up so others can improve it?



  5. John says:

    I have not heard from David in quite some time…

Skip to main content