Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Custom coloring inside Java string literals
Custom coloring inside Java string literals [message #670005] Thu, 12 May 2011 11:50
Aivar Annamaa is currently offline Aivar AnnamaaFriend
Messages: 33
Registered: July 2009
Member
I'd like to implement syntax coloring for SQL in string literals.

As far as I know, Java editor does not provide any extension points for this kind of things.

One option I see, is trying to do some kind of patching to certain JDT classes (FastJavaPartitionScanner seems to be relevant), but I'm not sure how deep this hole goes (eg. is FastJavaPartitionScanner also used for preliminary syntax checking inside the editor?)

A cleaner option would probably be subclassing CompilationUnitEditor and then setting my own SourceViewerConfiguration and stuff. But again, I feel that this could be quite a lot of boring work.

Does anybody have some advice about messing around with JDT editor coloring?
Previous Topic:Dynamic Class loading of java source
Next Topic:File extension override for Android build w/C++?
Goto Forum:
  


Current Time: Thu Apr 25 05:49:23 GMT 2024

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

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

Back to the top