pygmentize -f rtf FILE | pbcopy
- Paste into TextEdit (in rich text mode: Format → Make Rich Text before pasting), and copy to clipboard again.
- In PowerPoint, Edit → Paste Special… → Styled Text.
(Pasting RTF directly into PowerPoint doesn't work correctly, at least with PowerPoint 2008 — it extends colour spans longer than it should, and sometimes removes line breaks. Going via TextEdit seems to solve the problem.)
With PowerPoint 2011 for Mac, I found that it is not necessary to go via TextEdit to preserve the formatting -- however it was necessary to use the "Paste Options" popup to "Keep Source Formatting" (explained there for Windows).
I found a page with previews of all the pygmentize styles which can be helpful finding a style for you (especially in my case, as I needed one with white text, whereas the default one has black text).
Thanks for this great tip, BTW. Also I didn't know about pbcopy!