Actually you can do this with the ``literalinclude`` directive. I thought it might be useful to have a readable example inline, but they are exactly the same. I'll include the example instead.