Copy Notepad++ text with formatting?

后端 未结 9 1420
星月不相逢
星月不相逢 2020-11-30 17:37

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)

相关标签:
9条回答
  • 2020-11-30 18:01

    Select the Text

    From the menu, go to Plugins > NPPExport > Copy RTF to clipboard

    In MS Word go to Edit > Paste Special

    This will open the Paste Special dialog box. Select the Paste radio button and from the list select Formatted Text (RTF)

    You should be able to see the Formatted Text.

    0 讨论(0)
  • 2020-11-30 18:02

    It seems to me that the best and easiest way is commented by Dennis G:

    And now go to [Settings > Shortcut Mapper > Plugin Commands > Copy all Formats to clipboard] and set it to CTRL+SHIFT+C --> Instant joy. CTRL+C to copy the raw text, CTRL+SHIFT+C to copy with formatting. This should be default.

    Hoping help someone just like me!

    0 讨论(0)
  • 2020-11-30 18:08

    Horrible to look for this failure:

    Copy .dll to here:

    \Program Files\Notepad++\plugins --> put it here

    Restart the notepad++

    and now you are able to use the copy commands!!!

    0 讨论(0)
提交回复
热议问题