Format source code and export to various file format
See Code formatting & refactoring in visual C++, http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/ed45a521-4de4-462e-861e-a7e5ceb26dd8/
Tools:
- C# code export, Java code export, etc: http://www.cpptalk.net/cpp-code-export/
- Syntax Highlight, http://www.andre-simon.de/zip/download.html. Standalone packages and plugins for Notepad++ are available.
- Online code formatter: http://codeconverter.sharpdevelop.net/FormatCode.aspx
Note: if you copy & paste any formatted source code from a web page to OneNote, remember to include some of the text above and below the formatted source code when copying, otherwise OneNote will remove all of the formatting. - Another online code formatter: http://www.manoli.net/csharpformat/format.aspx
- Note: for the formatting to be retained when pasted into OneNote, tick the “Embed StyleSheet” checkbox.