Transforme trechos de Perl em imagens que valem a pena compartilhar, sem sair do seu 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.
O Codeshot detecta Perl pelo código que você cola, então não há seletor de linguagem para errar. Aqui está o mesmo trecho em três dos 30 temas inclusos, renderizados com as folhas de estilo do próprio app.
use strict;
use warnings;
my %themes = (xcode =>'dark', github =>'light');
foreachmy $name (sortkeys %themes) {
printf("%-10s %s
", $name, $themes{$name});
}
Atom One · escuro
use strict;
use warnings;
my %themes = (xcode =>'dark', github =>'light');
foreachmy $name (sortkeys %themes) {
printf("%-10s %s
", $name, $themes{$name});
}
GitHub · escuro
use strict;
use warnings;
my %themes = (xcode =>'dark', github =>'light');
foreachmy $name (sortkeys %themes) {
printf("%-10s %s
", $name, $themes{$name});
}
Solarized · escuro
Escolhendo um tema para Perl
Regexes are where a theme earns its keep. Pick one that tints them differently from strings, or the two blur together.
Acertando o tamanho
Deixe a imagem seguir o conteúdo ou fixe uma proporção — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3 ou 3:4 — e exporte em 1×, 2× ou 3× para que continue nítida em telas retina. Copie direto para a área de transferência com ⌘⇧C ou salve com ⌘S.