eclipse-plugin 的高级文本高亮设置
Advanced text highlight settings for eclipse-plugin
是否可以在代码编辑器中更改突出显示表达式的背景颜色的默认设置?
当我将光标放在一个方法上时,该方法存在的其他地方都是灰色背景。将光标放在 class 上会出现相同的背景颜色。如何将突出显示的方法的背景颜色更改为红色,并将突出显示的 classes 的背景颜色更改为绿色?
您要找的是"Mark Occurrences"。在 Xtext 中,这些是通过 IOccurrenceComputer. The default implementation is DefaultOccurrenceComputer. If you replace this instance with your own implementation (inside your module class using Guice) you can return your own Annotation's. You can then provide your own extensions to the annotations extension point 来自 eclipse 的实例计算的,颜色由您选择。
是否可以在代码编辑器中更改突出显示表达式的背景颜色的默认设置?
当我将光标放在一个方法上时,该方法存在的其他地方都是灰色背景。将光标放在 class 上会出现相同的背景颜色。如何将突出显示的方法的背景颜色更改为红色,并将突出显示的 classes 的背景颜色更改为绿色?
您要找的是"Mark Occurrences"。在 Xtext 中,这些是通过 IOccurrenceComputer. The default implementation is DefaultOccurrenceComputer. If you replace this instance with your own implementation (inside your module class using Guice) you can return your own Annotation's. You can then provide your own extensions to the annotations extension point 来自 eclipse 的实例计算的,颜色由您选择。