3

I'm writing an article and I would to maintain notepad++ syntax highlight when I paste a code block into word. The code is all in SQL, and I would very much like to the way it is formatted.

Also, print-screen and cut/paste the images is NOT an option.

Any ideas?

Hello71
  • 8,673
  • 5
  • 42
  • 45

3 Answers3

4

http://jeez.eu/2009/09/09/great-and-necessary-plugins-for-notepad-plus-plus/

Check out the section on NppExport. Seems to be what you're looking for ("Copy as RTF")

2

It happens to be the case that NppExport ships with notepad++. Check your Plugins -> NppExport menu for options to copy RTF snippets to the clipboard.

1

Visual Studio, for C# code (so, and, I assume for SQL), will include HTML formatting when copy'n'pasting code into something which understands HTML.