Pasting text and loosing formatting (code syntax highlighting) in Evernote has annoyed me for years.
So today I decided to try this out and it worked nicely:
In Windows 10 click on the "Search Icon" and type “(MS product name here)” into the search box. Alternatively, click/tap on the microphone icon in Cortana’s search field and say “Launch (MS product name here)”.
Press Ctrl+v to copy the text into a new note. It will paste the text with its current formatting!!