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種類のうち3つのテーマで同じスニペットを、アプリ自身のスタイルシートで表示しています。
Perl
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種類のうち3つのテーマで同じスニペットを、アプリ自身のスタイルシートで表示しています。
use strict;
use warnings;
my %themes = (xcode => 'dark', github => 'light');
foreach my $name (sort keys %themes) {
printf("%-10s %s
", $name, $themes{$name});
}
use strict;
use warnings;
my %themes = (xcode => 'dark', github => 'light');
foreach my $name (sort keys %themes) {
printf("%-10s %s
", $name, $themes{$name});
}
use strict;
use warnings;
my %themes = (xcode => 'dark', github => 'light');
foreach my $name (sort keys %themes) {
printf("%-10s %s
", $name, $themes{$name});
}
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で保存できます。
30種類のテーマを見比べるか、全体の流れをご覧ください。
すべてMac上で動作します。コードが外に出ることはありません。