• 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: Textual syntax colorizing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Textual syntax colorizing


  • Subject: Re: Textual syntax colorizing
  • From: Jonathan Wight <email@hidden>
  • Date: Thu, 11 Dec 2003 14:15:14 -0600

See the delegates methods of NSTextStorage:

textStorageWillProcessEditing:

and

textStorageDidProcessEditing:

The documentation is very useful. Enjoy.

Jon.

On Dec 11, 2003, at 13:35, DJH wrote:

> Okay, I have a question. BTW, I have been on this list for years now,
> and this is probably my first question. And, I have read all of the
> documentation many times, and I have searched the archives many times
> for the answer. I believe the problem is, I am not sure of the correct
> terminology to use for searches, thus leading to my inability to find
> the information.
>
> I have an application I'm working on, and in it, I have a text editor
> to allow editing of source code (no, it's not a currently-used
> language). What is the technique for colorizing the syntactical
> representation for the programming language (visually, of course, not
> stored in the actual file)? For example, when I am editing an
> objective-c file in Xcode, it colorizes the keywords and macro
> definitions, etc. according to a particular coloring scheme. Is this
> modification of the visual representation of the source code part of
> the (Objective-C) Cocoa framework somewhere in one of the text
> classes, or is this something Xcode does internally, which would
> require re-implementation completely in order for it to work? I have
> read all of the Objective-C documentation for text-based applications
> and classes, and I'm sure the technique is in there somewhere, I just
> don't quite fully understand the terminology used in the
> documentation. I have eliminated such things as NSInputServer, etc.,
> and I am sure it's a delegate function from one of the other text
> classes, but it eludes me! Please help.
>
> DJH
>
> P.S. I get this as a digest, so I won't see a reply for a while.
> _______________________________________________
> 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.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.

  • Follow-Ups:
    • Re: Textual syntax colorizing
      • From: "M. Uli Kusterer" <email@hidden>
References: 
 >Textual syntax colorizing (From: DJH <email@hidden>)

  • Prev by Date: Re: reading XML in Cocoa ?
  • Next by Date: Editing the text in an NSCell
  • Previous by thread: Textual syntax colorizing
  • Next by thread: Re: Textual syntax colorizing
  • Index(es):
    • Date
    • Thread