How to include a code snippet in a beamer presentation?

Viewed 25564

What's the best way to include some code snippets in a beamer presentation?

I've already tried verbatim, and lstlisting environments - both destroyed my presentation.

2 Answers
Related