Skip to main content



      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 07:50
Eclipse UserFriend
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: Wed Jul 16 06:03:13 EDT 2025

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

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

Back to the top