title: UITextView with Syntax Highlighting
body: <p>How to do Syntax Highlighting in a <code>UITextView</code>, specifically <strong>syntax highlighting</strong> (and <strong>detection</strong>) for <code>Objective-C</code> on the <strong>iPhone</strong>?</p>
  
  <p>Some of my ideas of how to do this:</p>
  
  <ul>
  <li><code>NSAttributedString</code>. Now available in iOS 3.2 and greater. But how would I put a <code>NSAttributedString</code> into a UITextView?</li>
  <li><code>UIWebView</code>. Overlay it when the user finished editing and color the text with CSS stylesheets. But how would I do this in a <code>UIWebView</code>, giving it the text and then coloring it?</li>
  </ul>