Re: Syntax Coloring?
Re: Syntax Coloring?
- Subject: Re: Syntax Coloring?
- From: Uli Kusterer <email@hidden>
- Date: Sat, 19 Sep 2009 14:41:17 +0200
I would hope that there's come Cocoa class for parsing source text
into tokens etc, but don't know of anything.
For what it's worth, this may help:
http://zathras.de/sourcecode.htm#UKSyntaxColoredTextDocument
It shows you how to re-examine only the parts that actually changed,
and not the entire file each time. It also uses custom attributes to
indicate ranges of syntax-specific stuff, so you can detect whether
you just chopped the ending indicator of a quoted string or whatever.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden