Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

People also ask

Is C easy for beginners?

C is not a toy language for beginners, it is a super hard language that even experts have a problem with.


  1. copy the code from Visual Studio to PowerPoint
  2. choose "keep original formatting" on the Paste Options icon

If I copy the code from Visual Studio directly into PowerPoint, using Paste Special (and picking RTF), it only does some of the formatting.
Here is how I got it to do all the formatting.

  1. Copy the code in Visual Studio. (Ctrl+C)
  2. Open a new Word document and do a paste. (Ctrl+V)
  3. Re-select the code in Word and copy it again. (Ctrl+A, Ctrl+C)
  4. In PowerPoint, do a Paste Special, as "HTML Format". (Ctrl+Alt+V)

"Paste Special" (Ctrl+Alt+V) will do it. This option is available in different places depending on your version of PowerPoint.


In Notepad++ 6.9.2 or higher, right click the text and select Plugin Commands and Copy Text with Syntax Highlighting.


  1. in PPT, click "Insert" -> "Object" -> "Create New" -> "Microsoft Word Document"
  2. Copy your code to the newly created object in PPT slides,
  3. You will see the formatting and highlight now.