Where is keyword/syntax highlighting implemented? [message #73521] |
Mon, 16 June 2008 17:10 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.04501 seconds