opit had to include some source code in a LaTeX document, and wanted it to be easily readable. The minted package is useful. Here’s a minimal working example:

Which is rendered as