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

Textual syntax colorizing


  • Subject: Textual syntax colorizing
  • From: DJH <email@hidden>
  • Date: Thu, 11 Dec 2003 11:35:30 -0800

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.

  • Follow-Ups:
    • Re: Textual syntax colorizing
      • From: Jonathan Wight <email@hidden>
  • Prev by Date: Re: Changing font size
  • Next by Date: Re: reading XML in Cocoa ?
  • Previous by thread: NSBorderlessWindowMask window with NSTextView
  • Next by thread: Re: Textual syntax colorizing
  • Index(es):
    • Date
    • Thread