Copying text with color from Notepad++

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++

enter image description here

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".


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"

And If you are trying to paste it to Microsoft word\ppt please make sure that the pasting setting on word\ppt is correct.

enter image description here