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)
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)
As the chosen answer is pretty old, and things changed, here is the new procedure, if you use 64 bits Notepad++. 64 bits version does not come with Plugin Manager nor NppExport. All details provided here.
To resume quickly, Plugin Manager is no longer develloped and NppExport can be found just here.
I practised almost all methods sent by other users in this thread but in my opinion my solution works perfect. I pasted even content from Notepad++ but supports only one font. I decided to use native programs desired to make apps. I set in every code editor (Visual Studio, Intellij Idea, Android Studio, etc) my fav font so I copy source code from my environment program and paste code formatting to my documentation together (with font also). Looks great and clear
The first image shows the view in Android Studio.

The second image shows the pasted source code. I just copied the selected part of source code and pasted to my document editor.
