Coding in PowerPoint - how to get syntax highlighted code into PowerPoint slides + a hint at future bits

Coding in PowerPoint - how to get syntax highlighted code into PowerPoint slides + a hint at future bits

  • Comments 6

I hate seeing code/xml/ any type of markup without highlighting - its nasty and if I wanted to notepad I would.

Unfortunately, copying and pasting straight from Visual Studio into PowerPoint doesn't presence all the formatting.

Well here is the procedure to get it to work (at least for *.aspx files):

  • Select + CTRL+C the code in Visual Studio / Visual Web Developer
  • open Microsoft Word
  • Paste the code into word
  • Select the contents of the Word doc and copy to clipboard
  • paste onto the PowerPoint canvas (not in an existing text box)

You end up with great slides like this (which happen to be disclosing stuff too):

image 

NOTE: Vikas (PM of Windows Live Tools for Microsoft Visual Studio) doesn't know I blogged about his new feature, so don't tell him.

Leave a Comment
  • Please add 1 and 5 and type the answer here:
  • Post
Page 1 of 1 (6 items)