Highlighting Spock test keywords in Eclipse

Viewed 215

I am using Eclipse for a Java project with some tests written in Groovy / Spock which uses the given: when: then: syntax. I would like these keywords to highlighted with some colour. Note: the spock plugin is supposed to this but doesn't work. So wanted to just do this myself.

2 Answers
Related