Is there a way to copy the text from a Notepad ++ file with color?
I am trying to write a tutorial document, and I would to be able to copy the xml tags.
Thanks!
You can't. You can only do word wrap and stylize the font for all of your notepads.
Select the portion of code you'd like to copy, then go the Edit menu and select Copy Special -> Copy as RTF. Your code, complete with syntax highlighting colors, is now stored on the clipboard. Simply press Ctrl + V in your other application to paste the code with syntax highlighting. It's that simple!
From the NotePad tab, select the cell of information you want to cut or copy. To cut the information, click Cut on the speedbar. To copy the information in the cell, click Copy on the speedbar. Select the cell where you want to paste the information.
There's a plugin called NppExport that does just that in a couple of available formats. If you don't have NppExport yet, you can download it through the inbuilt plugin manager.
update As of version 6.1.5 (or maybe earlier) this ships with a standard install of Notepad++
update As of 2019 NppExport
is not included by default in the Notepad++ 64 bits
version (github issue). You can download the 64 bits version of NppExport here: [github]
In NPP v6.7.7 you can do this by selecting your text, right clicking on it, select "Plugin commands" and then "Copy text with syntax highlighting".
To built on Raveren answer : Copy HTML to clipboard didn't for me (for a .bat), I had to select plugins/NppExport/Export to HTML instead and then open the html in a browser and copy the text from there.
It works fine when you choose copy with right click plugin commands and copy text with syntax highlighted.
For Notepad++ 64-bit releases you can find the NppExport plugin here: https://github.com/chcg/NPP_ExportPlugin/releases
I've tested "NppExport_0.2.8.16_x64.zip" with Notepad++ v7.5.4.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With