Gherkin

Gherkinコードスクリーンショット生成

Gherkinのスニペットを、Macから離れることなく共有したくなる画像に。

Gherkin はコードを書かない人が読むために書かれます。技術者以外と日常的に共有される数少ない言語です。

Codeshotは貼り付けたコードからGherkinを判別するので、言語の選び間違いは起きません。付属する30種類のうち3つのテーマで同じスニペットを、アプリ自身のスタイルシートで表示しています。

Feature: Exporting a snapshot

  Scenario: Export at retina scale
    Given a snippet of Swift
    And the Xcode theme is selected
    When I export at 2x
    Then the image is 1600 by 900 pixels
GitHub · ダーク
Feature: Exporting a snapshot

  Scenario: Export at retina scale
    Given a snippet of Swift
    And the Xcode theme is selected
    When I export at 2x
    Then the image is 1600 by 900 pixels
iA · ダーク
Feature: Exporting a snapshot

  Scenario: Export at retina scale
    Given a snippet of Swift
    And the Xcode theme is selected
    When I export at 2x
    Then the image is 1600 by 900 pixels
Solarized · ダーク

Gherkinに合うテーマ選び

読み手の幅が広い分、ここでは他のどれよりもフォントを大きくしてください。会議中にスマートフォンで見られる前提で考えます。

サイズを正しく決める

画像サイズを内容に合わせるか、比率で固定します(1:1、4:3、3:2、16:9、9:16、2:3、3:4)。そのうえで1×・2×・3×から選んで書き出せば、Retinaディスプレイでも鮮明なままです。Cでクリップボードに直接コピー、またはSで保存できます。

30種類のテーマを見比べるか、全体の流れをご覧ください。

Gherkinと、ほかの59言語のために

すべてMac上で動作します。コードが外に出ることはありません。

ダウンロード