I would like to be able to copy snippets of my C code and paste in my word document and have the pasted text keep the same color highlighting as in N++.
Is there a way I can do that?
Thanks, Jason.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Admittedly this is nice feature of Visual Studio and I like it for XML files and kept trying it with npp but it doesn't work. VS does this by converting the selection to RTF and only really puts in the Font and the colors to the snippet which should make it easier.
Dug around in the code a little bit but could find any easy access to the data. Looks like most of it is directly in Scintilla and I didn't see any calls to get the line layout but perhaps I missed it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It's about 4 years and several version since this thread first asked about preserving color when copying text from Notepad++ to other applications.
I need to email code snippets and small XML files to others all the time. I would like to start with text already formated and highlighted by language before selecting a portion and highlighting further.
Has there been any change in heart at preserving color and font attributes (such as fixed) when copying from Notepad++ to the clipboard so it can be pasted into a document and preserve its visible characteristics?
Even if RTF is used to copy text to the clipboard either using standard Copy (Ctrl/C) or something like RTFCopy (Shift Ctrl/C) it would be useful and quicker than current methods.
is there a possibility of the equivalent of TextToRTF and RTFToText within Notepad++.
Currently, I accomplish my tasks in a 2-step operation.
For XML, copy from Notepad++, paste into VS then copy again to Email
For C#, copy from Notepad++, paste into VS then copy again to Email.
For PS1, copy from Notepad++ into PowerGUI script editor then copy again to Email.
This is tedious.
Is the best approach to write a plug-in?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would like to be able to copy snippets of my C code and paste in my word document and have the pasted text keep the same color highlighting as in N++.
Is there a way I can do that?
Thanks, Jason.
With this plug-in you can save the file as RTF, then copy-paste it to word.
http://sourceforge.net/forum/message.php?msg_id=3509796
I also want to know...
I am another person who would like to paste the language colors...
And another one...
I guess it's not possible to do that in this editor.
Admittedly this is nice feature of Visual Studio and I like it for XML files and kept trying it with npp but it doesn't work. VS does this by converting the selection to RTF and only really puts in the Font and the colors to the snippet which should make it easier.
Dug around in the code a little bit but could find any easy access to the data. Looks like most of it is directly in Scintilla and I didn't see any calls to get the line layout but perhaps I missed it.
i think instead of RTF you can try to make alternative clipboard content in HTML formatting, many editors understands HTML as well
Hate that thing. One more time: it is a notepad, not IDE!
It's about 4 years and several version since this thread first asked about preserving color when copying text from Notepad++ to other applications.
I need to email code snippets and small XML files to others all the time. I would like to start with text already formated and highlighted by language before selecting a portion and highlighting further.
Has there been any change in heart at preserving color and font attributes (such as fixed) when copying from Notepad++ to the clipboard so it can be pasted into a document and preserve its visible characteristics?
Even if RTF is used to copy text to the clipboard either using standard Copy (Ctrl/C) or something like RTFCopy (Shift Ctrl/C) it would be useful and quicker than current methods.
is there a possibility of the equivalent of TextToRTF and RTFToText within Notepad++.
Currently, I accomplish my tasks in a 2-step operation.
For XML, copy from Notepad++, paste into VS then copy again to Email
For C#, copy from Notepad++, paste into VS then copy again to Email.
For PS1, copy from Notepad++ into PowerGUI script editor then copy again to Email.
This is tedious.
Is the best approach to write a plug-in?
Ooops-a-Daisy - Found NppExport and it appears to do most of what I want.
Sorry for the inconvenience!