简体   繁体   English

黄瓜Textmate突出显示

[英]Cucumber Textmate Highlighting

I am trying to get highlighting for Cucumber to work with Textmate. 我正在尝试强调Cucumber与Textmate一起工作。 I already installed the Cucumber Textmate Bundle (which is supposed to include the highlighting). 我已经安装了Cucumber Textmate Bundle (应该包括突出显示)。 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. 我正在使用Ryan Bates的Railscasts主题 (描述它在about页面中 )为textmate,但由于某种原因, In order toAs aI want等,不要在位于我的功能文件夹中的foobar.feature中突出显示。

Seems like it's working for for Ryan in his " Beginning with Cucumber " screencast. 似乎它正在为Ryan在他的“ 黄瓜开始 ”截屏视频中工作。

Any help? 有帮助吗?

Thanks! 谢谢!

The bundle adds some new keywords that aren't shipped with the standard TM fonts for highlighting. 该软件包添加了一些未附带标准TM字体的新关键字,用于突出显示。 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." 根据README安装说明:“安装语法突出显示的颜色主题:单击在Finder中单击颜色主题dir中找到的主题。”

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. Aslak认为它不应该突出显示,我同意他的意见,因为叙述应该是定制的,任何适合你的。 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. 正如社区所知,黄瓜tmbundle现在由github上的黄瓜帐户维护。 The language for the features is Gherkin. 这些功能的语言是Gherkin。 And there are new shortcuts to handle different tasks. 并且有新的快捷方式来处理不同的任务。

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

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