Custom coloring inside Java string literals [message #670005] |
Thu, 12 May 2011 11:50 |
Aivar Annamaa 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?
|
|
|
Powered by
FUDForum. Page generated in 0.03457 seconds