
If like me, you have to write regular reports with the source code inside, you may have regretted not have syntax highlighting in your favorite word processor to make it more readable code.
Well here is the solution to this evil that eats you! It's Notepad + + , the famous text editor for Windows that brings us through one of its plugins (installed by default).
So to take advantage of the latter, instead of a classic copy - paste , select the code (or the part of code you want) and click Plugins> NppExport> Copy to clipboard RTF.
Then, in your favorite word processor, you just make a simple Edit> Paste.
Simple but effective!




















10 users commented on this post
Thank you for this tip!
It is true that it's not bad. And there's no way to directly copy and paste the color?
[Loo to your spam!]
What do you mean by directly? without plugin?
For export to RTF allows to export just the color.
Otherwise, he has what my spam?
Yes, when you do CTRL + C it uses the clipboard directly into color.
And your anti-spam is annoying, so I fo my calculator ^ ^
For my blog I'm using the new method: you put a hidden field, the robot will fill and not the "human" so you delete them or this box is full (you can call URI eg for better wrong). That's what I did on my blog (my captcha was a horror worse than yours ^ ^)
WE live the good and tds!
I have no spam and it suits me very well!
Returning to schmilblik, copy and paste the code visual studio makes it very well in a word document.
Yes, it is still necessary to use Visual Studio ... I want to troll but hey, ahem! :-P
Vien you spare me a copy and paste with visual!
Thank you!
Nothing ;-)
Thank you, you are saving me quite a while, you saved me: D
Thank you very much for this method! Before I was exporting source code to notepad + + but after the pdf for editing footers ...... impossible ... So very galley! Now it's great! Thank you! :-)
Pingback and Trackback
Leave a Comment