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?
+12
A:
- copy the code from Visual Studio to PowerPoint
- choose "keep original formatting" on the Paste Options icon
sblom
2009-05-05 15:18:52
Embarassingly I totally missed that feature... ;) Unfortunately, however, the code is randomly colored and needs to be fixed with a load of extra work.
2009-05-06 06:33:00
For some reason I only have the option to paste RTF or unformatted. RTF does not preserve black text.
Rick Minerich
2009-07-09 15:43:17
Oh my god... any idea how many times I've looked for a way to do this!
WaldenL
2009-10-01 15:43:11
+1
A:
You can use Windows Live Writer with the Insert Code plugin to "write" the C# code and syntax highlight it. This should be copy and pastable directly into PowerPoint, since it's inlines all of the syntax highlighting using styling elements.
Reed Copsey
2009-05-05 15:20:43
+2
A:
"Paste Special" (Ctrl+Alt+v) will do it. This option is available in different places depending on your version of PowerPoint.
Ishmael
2009-05-05 15:22:11