Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Where is keyword/syntax highlighting implemented?
Where is keyword/syntax highlighting implemented? [message #73521] Mon, 16 June 2008 17:10
Eclipse UserFriend
Originally posted by: rhughes.netezza.com

I'm attempting to implement a text editor for Eclipse that can highlight
and format a plaintext file according to the strictures of an XML file, so
that you'd have one XML file describing the keywords and syntax of Java
and another one for MySQL, and so on, and could use a single editor to
edit any of those files, as a result.

However, I want to duplicate as little code and functionality as possible
while I do this, so I'm trying to build off the highlighting functionality
found in the JDT, and used to do things like highlight the word 'class' in
bold maroon. I'm looking through the JavaEditor class and trying to find
out where and how this is done, so that I can implement a subclass of
TextEditor that highlights text appropriately.

I'm looking myself, but if anyone knows the answer to this question off
the top of their head, I'd love a tip as to where I should be looking in
the JDT plugins.
Previous Topic:Cryptic error message about "The selection cannot be launched..."
Next Topic:PDT 1.0.3 and Eclipse 3.4 (Ganymede)
Goto Forum:
  


Current Time: Thu Apr 25 14:55:14 GMT 2024

Powered by FUDForum. Page generated in 0.02937 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top