简体   繁体   English

为自定义的eclipse插件编辑器添加颜色,扩展了文本编辑器

[英]Adding colour to a custom eclipse plug in editor which extends text editor

I'm currently creating an Eclipse plugin project for XML content assist. 我目前正在创建一个用于XML内容帮助的Eclipse插件项目。 My editor currently extends the text editor which generates a black and white colour scheme. 我的编辑器当前扩展了生成黑色和白色配色方案的文本编辑器。 Is there any way I can have the normal XML colour scheme while still extending text editor? 有什么办法可以在扩展文本编辑器的同时使用常规的XML配色方案?

Just a follow up. 只是跟进。 The solution was right in front of me. 解决方案就在我眼前。 Create a new plug-in project in Eclipse with the 'editor' template or else use the extension wizard found in plugin.xml. 使用“编辑器”模板在Eclipse中创建一个新的插件项目,或者使用在plugin.xml中找到的扩展向导。 There are pre developed classes which use text editor combined with colour. 有一些预先开发的类,它们使用结合了颜色的文本编辑器。 Very easy to reference or to build upon. 非常易于参考或建立。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM