Search code examples
notepad++syntax-highlighting

Copy Notepad++ text with formatting?


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)


Solution

  • 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