Pasting code into OneNote needs improvement

P

PBar

OneNote could be a very useful tool for making notes when browsing a large
codebase, but currently cutting and pasting code typically loses syntax
colouring and worst of all changes the indentation structure! This happens
even if you use the 'keep original formatting' paste option.

As a result I normally use screen captures instead, which cannot be
searched. :-(

e.g. If I copy code from Visual Studio 2005 to the clipboard and paste into
OneNote I lose colours. If I paste into Word and then cut&paste from Word
into OneNote then it preserves colours. Cut&Paste from Source Insight loses
everything. Both ways tend to turn tabs into strange sublists - but make a
real mess.

How about simple cut&paste, keeping the font colours, with no messing about,
and preferably putting in a link to the original file?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/com...b86c-62ebcc3b4c9d&dg=microsoft.public.onenote
 
J

James Gockel

What about printing to onenote.. I know.. you can't edit the code, nor
search it as if it were pasted, but all colors (if printing preserves
colors) should still be there, and! you can annotate right on top.
It's an idea.
-James G.
 
D

Doug C.

Tim said:
Have you tried the CopySourceAsHTML extender for Visual Studio?

CopySourceAsHTML doesn't work either. When pasted into ON, it pastes
nothing (visible at least). Apparently none of the ON developers ever wanted
to paste from .net into ON :).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top