title: Visual Studio: Export C# Code into a PDF file and keep the formatting + colors?
body: <p>I was wondering if there is any export function inside <code>Visual Studio Ultimate (2010)</code> to get a chosen <code>tab</code> (by default a single <code>class</code>) of <code>C# code</code> exported into a <code>PDF</code> file, so you can share that PDF file and show someone the code, with the formatting and colors of Visual Studio? I'm sending the PDF with sample code for an application, that's how I came to this question.</p>
  
  <p>I know that I could copy the code into Word in a textbox, that works fine and keeps colors + formatting. I am just interested if there is an option in Visual Studio too? It's not important, just want to know. ;-)</p>