Re: Dynamic Syntax Highlight
Re: Dynamic Syntax Highlight
- Subject: Re: Dynamic Syntax Highlight
- From: "Li'l D" <email@hidden>
- Date: Sun, 07 Sep 2003 10:48:22 -0700
There's a tutorial here on the Ranchero website:
http://ranchero.com/cocoa/syntaxcoloring/
but it's not dynamic coloring. To do it dynamically maybe set up the textView to notify a delegate (textDidChange) and run the syntax coloring method every time the text changes. That's one easy technique, though perhaps not the most efficient.
D.
------------
daniele wrote:
>
Hi, I would to set a color of a text during it's typing in a NSTextView.
>
I need to color the lines the start with > or >> or >>>
>
(as like in mail.app).
>
Is there a short example to do it around the web?
>
Thank you very much
>
daniele
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.