Превращайте фрагменты Perl в изображения, которыми хочется делиться, не покидая Mac.
Perl's sigils and regex literals are dense enough that syntax colour does real work, which makes an image far more readable than plain text.
Codeshot определяет Perl по вставленному коду, так что ошибиться с выбором языка невозможно. Вот один и тот же фрагмент в трёх из 30 встроенных тем, отрисованных стилями самого приложения.
use strict;
use warnings;
my %themes = (xcode =>'dark', github =>'light');
foreachmy $name (sortkeys %themes) {
printf("%-10s %s
", $name, $themes{$name});
}
Atom One · тёмная
use strict;
use warnings;
my %themes = (xcode =>'dark', github =>'light');
foreachmy $name (sortkeys %themes) {
printf("%-10s %s
", $name, $themes{$name});
}
GitHub · тёмная
use strict;
use warnings;
my %themes = (xcode =>'dark', github =>'light');
foreachmy $name (sortkeys %themes) {
printf("%-10s %s
", $name, $themes{$name});
}
Solarized · тёмная
Как выбрать тему для Perl
Regexes are where a theme earns its keep. Pick one that tints them differently from strings, or the two blur together.
Как выбрать размер
Пусть размер следует за содержимым или зафиксируйте соотношение — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3 или 3:4 — а затем экспортируйте в 1×, 2× или 3×, чтобы изображение оставалось чётким на retina-экране. Скопируйте его в буфер обмена сочетанием ⌘⇧C или сохраните через ⌘S.