Possible Duplicate:
UITextView with Syntax Highlighting
I'm working on a source code editor for the iPad, but I'm stuck on square one: syntax highlighting. I'm planning on using libclang to do the heavy lifting, but there doesn't seem to be a good way to show rich text on iOS. I think the best solution would be to have a subclass of UITextView
that supports NSAttributedString
drawing, but I'm not sure how to do that. I've seen things like Omni's text editor, but it doesn't look very good. I only need multiple colors of a monospaced font. Is there a framework or library that would help draw attributed strings in a UITextView
subclass?
Thanks in advance.