• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Syntax Coloring?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: 2 simple questions
  • Next by Date: Re: Movable Document Modal Dialogs
  • Previous by thread: Re: nested NSDictionary's and objectForKey
  • Next by thread: Re: Movable Document Modal Dialogs
  • Index(es):
    • Date
    • Thread