Monday, February 25, 2008 12:12 PM
by
alogan
Coding in PowerPoint - how to get syntax highlighted code into PowerPoint slides + a hint at future bits
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):
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.