黄瓜 Textmate 突出显示

发布于 2024-08-25 07:07:42 字数 669 浏览 2 评论 0原文

我正在尝试突出显示 Cucumber 与 Textmate 的配合。 我已经安装了 Cucumber Textmate Bundle (应该包括突出显示)。 我正在使用 Ryan Bates 的 Railscasts 主题(其说明位于 关于页面)用于textmate,但由于某种原因为了作为I Want 等不会在我的功能文件夹中的 foobar.feature 中突出显示。

看起来这对 Ryan 的“从 Cucumber 开始”截屏视频来说很有效。

有什么帮助吗?

谢谢!

I am trying to get highlighting for Cucumber to work with Textmate.
I already installed the Cucumber Textmate Bundle (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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风吹短裙飘 2024-09-01 07:07:42

该捆绑包添加了一些新的关键字,这些关键字未随标准 TM 字体一起提供以用于突出显示。您实际上需要安装捆绑包附带的主题之一。
根据 README 安装说明:“安装颜色主题对于语法突出显示:在 Finder 中单击 color_themes 目录中找到的主题。”

如果您想将捆绑包与当前主题一起使用,您将需要添加关键字并为您的主题选择适当的颜色。您可以通过安装捆绑包附带的其中一个然后进入“首选项 -> 字体和颜色”来查看此示例。

如果您最终确实调整了另一个主题以与捆绑包一起使用,请告诉我,以便我可以将其合并到捆绑包中。 :)

但是,在重读您的问题之后..您是否只是想知道为什么该功能的叙述没有突出显示? (叙述是“为了……”文本。)如果是这样,则故意删除其突出显示。阿斯拉克认为不应该强调这一点,我同意他的观点,因为叙述实际上应该是习惯性的,无论什么对你有用。突出显示这些内容也很烦人,因为它有时也会错误地突出显示场景部分。

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.

小女人ら 2024-09-01 07:07:42

正如社区所知,cucumber-tmbundle 现在由 github 上的 cucumber 帐户维护。这些功能的语言是 Gherkin。并且有处理不同任务的新快捷方式。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文