How to Copy Code or Text with Color in Notepad++
Notepad++ is a popular source code editor. It’s rightfully so due to the support for a vast number of programming languages and ease of use. The software even supports third-party plugins for enhanced features.
In this article, we are going to take a look at one such plugin — NppExport. It allows users to copy code/text with Syntax Highlighting in Notepad++. In other words, it allows the user to copy the text with color.
Install NppExport Plugin in Notepad++
7.8.6 NppExport plugin is bundled with Notepad++ installer. So, we can install NppExport alongside Notepad++.
From Notepad++ Installer
To install NppExport, run the Notepad++ installer. Follow the installer till you see
Choose Components window.
As you can see, the NppExport plugin is already selected. Just hit next and complete the installation.
From Plugins Admin in Notepad++
If you already have Notepad++ installed and wish to install NppExport. It is as equally easy as above method.
Run Notepad++ and go to Plugins menu in Notepad++ toolbar. Select the Plugins Admin option from the list.
A new window will open known as Plugins admin. Use the search text-box and type
NppExport and hit enter. Select the checkbox of NppExport and then press Install.
How to Copy Code/Text with Color using NppExport
To copy the code/text with Syntax highlighting open a compatible file in Notepad++. Then, select the text you want to copy and right-click. Go to Plugins command then press
Copy Text with Syntax Highlighting to copy.
You can now paste your colourful formatted text anywhere. Right from your Microsoft Word document to any other text editor which supports it.