Group:  Other Microsoft Office Products ยป microsoft.public.onenote
Thread: Pasting code into OneNote needs improvement

Geek News

Pasting code into OneNote needs improvement
PBar 11/24/2005 4:46:13 PM
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/community/en-us/default.mspx?mid=14e94a43-c253-4ed4-b86c-62ebcc3b4c9d&dg=microsoft.public.onenote
Re: Pasting code into OneNote needs improvement
Tim <MSGroups[ at ]communicateit.net> 11/25/2005 4:09:19 AM
Have you tried the CopySourceAsHTML extender for Visual Studio?


PBar wrote:
[Quoted Text]
> 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?
Re: Pasting code into OneNote needs improvement
"EMRhelp.org" <EMRhelp.org[ at ]gmail.com> 11/25/2005 4:37:47 AM
EverNote is better than OneNote for Code repositories.

Re: Pasting code into OneNote needs improvement
"James Gockel" <flibbertigibbet007_at_hotmail_dot_com> 11/25/2005 6:21:03 AM
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.

"PBar" <PBar[ at ]discussions.microsoft.com> wrote in message
news:14E94A43-C253-4ED4-B86C-62EBCC3B4C9D[ at ]microsoft.com...
[Quoted Text]
> 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/community/en-us/default.mspx?mid=14e94a43-c253-4ed4-b86c-62ebcc3b4c9d&dg=microsoft.public.onenote


Re: Pasting code into OneNote needs improvement
Doug C. 5/21/2007 2:16:01 AM
"Tim" wrote:
[Quoted Text]
> 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 :).

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net