NppExport For Notepad++: Export Highlighted Code In HTML/RTF Format


Notepad++ is becoming more and more versatile and useful text editor with every new plugin added to its arsenal. Each new plugin brings something different to the application allowing users to perform more and more functions and edit documents with ease using Notepad++. The default Notepad++ does not allow users to export the edited text or code in HTML or RTF format. So, if you want to generate an HTML report of a piece of code you have just written, you will have to use another tool for that. Today, we bring you another plugin called NppExport that allows you to generate reports of your source code in HTML and RTF format. You can also copy the source code to Windows clipboard in specified format (HTML or RTF), and paste it in your default Word Processor to get highlighted syntax of code. It may come helpful in situations where you need to share the code with those who don’t have the required software IDE to view the code with highlighted syntax. Using NppExport, instead of making the other person install the same tool on his system, or letting him view the code with the wrong syntax, you can easily generate an HTML report that will retain the complete syntax of your code in the generated report.

To install NppExport, open Plugin Manager from Plugins—> Plugin Manager—> Show Plugin Manager. Under Available tab, select NppExport and click Install. The lower part of the Plugin Manager window contains information about what functionality will be added to your copy of the Notepad++ after installing the plugin.

Plugin Manager

Once installed, click Plugins—> NppExport to access Export to RTF, Export To HTML, Copy RTF to Clipboard, Copy HTML to Clipboard and Copy All Formats to Clipboard options.

Greenshot image editor_2011-12-28_17-42-41

Select, for instance, Export to HTML to save the code in HTML format with the highlighted code intact with the same colors. The code can then be viewed in any regular browser. You will notice that the syntax will be same as what you intended it to be while writing it. The syntax code is also highlighted to make it easier for anyone to analyse it.

Exported from Notepad   - Mozilla Firefox_2011-12-28_17-43-57

Npp Export is an open source plugin that works on all versions of Notepad++. Testing was done on Notepad++ 5.9.5.

Download NppExport

  • Anonymous

    Too bad I use OS X now.. I really miss NP++.