title: Coloring the verbatim like environment?
body: <p>This is a screen capture from Pragmatic Bookshelf book.</p>
  
  <p><a href="http://img13.imageshack.us/img13/3168/screenshot20100717at123.png" rel="nofollow noreferrer">http://img13.imageshack.us/img13/3168/screenshot20100717at123.png</a></p>
  
  <p>It looks like that the verbatim environment with the coloring, but I'm not sure.</p>
  
  <p>How can one can use color for verbatim like environment as is shown?</p>
  
  <p>Using  line by line method would be a solution, but I expect a better way to go.</p>
  
  <pre>
  {\color{red}\begin{verbatim}
  line 1
       line 2
  \end{verbatim} }
  \color{blue}{\begin{verbatim}
  line 3
       line 4
  \end{verbatim}}
  </pre>