• 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: BareFeet <email@hidden>
  • Date: Mon, 24 Aug 2009 10:32:24 +1000

Hi Keita,

Hello, I'm writing a code editor and so far, i've been using Flex for
regex-matching the whole document every time the text is changed and
coloring appropriately...

How are you doing this? How did you incorporate Flex or regex-matching?

I approached it using regex to parse the quoted and commented strings into single objects, then parse using regex for the language, then reinsert the quoted and commented strings. But this was using perl and scripting, whereas I now need to port to Cocoa.

I managed to get regex working in Cocoa using RegexKiteLite, but now need to move across the rest of my method.

I got this idea from some CocoaBuilders or CocoaDev forum/mailing list awhile ago

Do you have a link to the article?

but it's terribly inefficient and slow, especially with large documents.

I would hope that there's come Cocoa class for parsing source text into tokens etc, but don't know of anything.


Tom

_______________________________________________

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


  • Follow-Ups:
    • Re: Syntax Coloring?
      • From: Keitaroh Kobayashi <email@hidden>
    • Re: Syntax Coloring?
      • From: Rob Keniger <email@hidden>
References: 
 >Syntax Coloring? (From: Keitaroh Kobayashi <email@hidden>)

  • Prev by Date: Confusion about custom UITableViewCell
  • Next by Date: Re: Core Animation + Garbage Collection
  • Previous by thread: Re: Syntax Coloring?
  • Next by thread: Re: Syntax Coloring?
  • Index(es):
    • Date
    • Thread