How to: C# source with syntax highlighting on PowerPoint slides

John Dorian picture John Dorian · May 5, 2009 · Viewed 47.2k times · Source

I would like to show some C# source code in a PowerPoint presentation. But how can I copy the code including the syntax highlighting onto the slides? I could make screenshots, but that has some drawbacks (ugly, font size, unmaintainable). Do you have some ideas?

Answer

sblom picture sblom · May 5, 2009
  1. copy the code from Visual Studio to PowerPoint
  2. choose "keep original formatting" on the Paste Options icon