Friday, 13 July 2018

Syntax highlighting not retained when pasting from Notepad++ into Word

I'm trying to copy code snippets from Notepad ++ to Microsoft word, which somehow doesn't seem to work.


I DO know that there is a standard, well answered question already. However, I seem to be unable to follow the steps. Everything works fine, until I paste into Microsoft Word, when I get nothing but black text.


I've tried a combination of



  • Plugin Commands > Copy Text with Syntax Highlighting from Notepad++

  • Plugin>NPP Export > Copy {RTF/HTML/all formats} to clipboard from Notepad++

  • Paste, Keep Original Style(K) in Word

  • Home > Clipboard > Select and Paste > {RTF/HTML} in Word

  • Home > Open Clipboard(That little arrow at the bottom right corner at the clipboard menu) > paste in Word

  • Insert > Insert Object > Open Document Text in Word

  • Clean Clipboard

  • Restarting Notepad ++, Word

  • Rebooting


But still I get black, plain text in Word. Any suggestions as to why this might occur? I'm using Word 365, Notepad++ 7.7, Windows 10.


Thx.

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...