I open some code (.m file for Matlab) in notepad++ and it is displayed in a nice style.
How do I copy and paste it into word and keep the style?
Plugins → NppExport → Export to RTF.