Copy from Visual Studio 2015 code with line numbers and highlights
<p>I'm composing a programming guide for users so I need to copy some pieces of code from MS Visual Studio 2015 to MS Office 2016. I tried different ways (even by using Notepad++). They didn't provide me the satisfactory result. I want the pasted text to be as formated as in Visual Studio including lines numerations. in I'd like to export code from VS to rtf, for example, and paste it into the Word file. I did the same thing using <a href="https://visualstudiogallery.msdn.microsoft.com/98fef791-eb65-4cdf-bf84-077b98c234cf" rel="noreferrer">Copy as HTML</a> extension for Visual Studio 2013. Do you have any solutions or ideas?</p>
<p>UPD: I don't want to use screenshots. I want to past some text .docx to be successfully converted to PDF.</p>