Reputation: 2613
I want to write a simple text editor for iPhone with syntax highlighting support for c,c++. But the problem is, I dont't know how to do this. The first solution I was thinking about, was to go over the text and highlight keywords when the value of the UITextView has changed, but I think that if I got more than 1000lines of code that doesn't work very well.
Thanks for help!
Upvotes: 2
Views: 3492
Reputation: 4344
Check out this answer What is the best way to implement syntax highlighting of source code in Cocoa? also there are some tutorials whnen you google "implementing syntax highlighting". Like this one or that one.
Upvotes: 5