views:

172

answers:

1

Hi,

I am working on an application and would like to apply some syntax highlighting to some user entered text. I have looked around and some people are suggesting that this can be done in OS 3.2+ but posts seem to be from before the NDA was lifted. Does anyone have any suggestions as to how to go about doing this?

I would be interested in releasing the code on github if I could get it implemented well, as I have never done so before.

Thanks

+1  A: 

If you're developing for 3.2 and later, you can use NSAttributedString for this.

If you want to support earlier versions, using a UIWebView would probably be the easiest way.

Can Berk Güder
Thanks for the reply, I'll have a look into NSAttributedString.
Jack
you're welcome.
Can Berk Güder