Highlighting certains words in Eclipse

纵饮孤独 提交于 2019-12-12 02:29:13

问题


I am writing spock tests in Groovy / Grails in Eclipse. These use key words such as setup: the: and when:. I'd like to be able to add some syntax highlighting to these words. Is this possible?

Thanks.


回答1:


Please try the Spock Eclipse plugin: http://marketplace.eclipse.org/content/spock-plugin#.Uht-2Lw26KQ I think it will do what you require.




回答2:


XText looks really cool, with extensive documentation and support. Is it too complex for what you need?

Either that, or if you have knowledge and experience with Eclipse RCP, you could create your own text editor, and add the project to your IDE.



来源:https://stackoverflow.com/questions/18441156/highlighting-certains-words-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!