Превращайте фрагменты Gherkin в изображения, которыми хочется делиться, не покидая Mac.
Gherkin is written to be read by people who do not write code, which makes it one of the few languages regularly shared with a non-technical audience.
Codeshot определяет Gherkin по вставленному коду, так что ошибиться с выбором языка невозможно. Вот один и тот же фрагмент в трёх из 30 встроенных тем, отрисованных стилями самого приложения.
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
Because the audience is wider, push the font size up further than you would for anything else here. Assume it will be viewed on a phone in a meeting.
Как выбрать размер
Пусть размер следует за содержимым или зафиксируйте соотношение — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3 или 3:4 — а затем экспортируйте в 1×, 2× или 3×, чтобы изображение оставалось чётким на retina-экране. Скопируйте его в буфер обмена сочетанием ⌘⇧C или сохраните через ⌘S.