Syntax highlighting on iPhone Text-Editor

I want to write a simple text editor for iPhone with syntax highlighting support for c, c ++. But the problem is I don't know how to do it. The first solution I thought of was to go to text and highlight the keywords when the UITextView value changed, but I think if I got over 1000 lines of code that doesn't work very well.

Thanks for the help!

+2


a source to share


1 answer


Check out this answer What is the best way to implement source code syntax highlighting in Cocoa? there are also several tutorials where you google "implement syntax highlighting". Like this one or which one.



+5


a source







All Articles