Copy Notepad++ text with formatting?

Josh picture Josh · Aug 13, 2010 · Viewed 169k times · Source

I'm using Notepad++ to write code.

How do I copy code in Notepad++ along with its formatting to paste into Microsoft Word? (i.e. syntax highlights, etc)

Answer

ppolyzos picture ppolyzos · Feb 24, 2011

Here is an image from notepad++ when you select text to copy as html.

Notepad++ Plugin: Copy as HTML

and how the formatted text looks like after pasting it in OneNote (similar to any other app that supports "Paste Special"): How it looks like when importing it