开发者

Cucumber Textmate Highlighting

I am trying to get highlighting for Cucumber to work with Textmate. I already installed the Cucumber Textmate Bundle开发者_Go百科 (which is supposed to include the highlighting). I am working with Ryan Bates' Railscasts theme (description for it is in the about page) for textmate, but for some reason In order to, As a, I want, etc do not get highlighted in foobar.feature located in my features folder.

Seems like it's working for for Ryan in his "Beginning with Cucumber" screencast.

Any help?

Thanks!


The bundle adds some new keywords that aren't shipped with the standard TM fonts for highlighting. You actually need to install one of the themes that ships with the bundle. Per the README install instructions: "To install the color themes for the syntax highlighting: Click on the themes found in the color_themes dir by clicking on them in Finder."

If you want to use the bundle with your current theme you will need to add the keywords and choose appropriate colors for your theme. You can see examples of this by installing one of the ones that ships with the bundle and then going into "Preferences -> Fonts & Colors".

If you do end up adjusting another theme to work with the bundle please let me know so I can incorporate it into the bundle. :)

However, after rereading your question.. Are you just wondering about why the feature's narrative is not highlighted? (The narrative is the "In order to..." text.) If so, the highlighting of that was purposely removed. Aslak thought it shouldn't be highlighted, and I agreed with him, because the narrative should really be custom and whatever works for you. It also was annoying to have those highlighted since it would sometimes highlight the scenario sections incorrectly as well.


Just so the community knows, the cucumber-tmbundle is now being maintained by the cucumber account on github. The language for the features is Gherkin. And there are new shortcuts to handle different tasks.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜