|Editor plugin : Java inside XML file ? [message #1009581]
||Fri, 15 February 2013 10:46
| kek corp
Registered: February 2013
I'm trying to develop a plugin that enables syntax highlighting, content assistance, color formatting, etc. for Java code inside a specific tag in a XML file (LogicSheet for Cocoon).
I managed to extract the tags containing the Java code. I don't want to reimplement a Java Editor from scratch, can I use the eclipse.jdt classes (such as JavaPartitionScanner, JavaColorManager, etc.)? If so, how? With another RuleBasedPartitionScanner? Or a simple RuleBasedScanner?
Or maybe there is an easy way to include the JavaEditor class inside another editor, like extending JavaSourceViewerConfiguration and modify the partitioner to include XML tags, comment, etc.?
Any help? A starting point?
Powered by FUDForum
. Page generated in 0.02081 seconds