Trasforma gli snippet Perl in immagini che vale la pena condividere, senza uscire dal tuo 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 riconosce Perl dal codice che incolli, quindi non c’è nessun selettore di linguaggio da sbagliare. Ecco lo stesso snippet in tre dei 30 temi inclusi, resi con i fogli di stile dell’app.
use strict;
use warnings;
my %themes = (xcode =>'dark', github =>'light');
foreachmy $name (sortkeys %themes) {
printf("%-10s %s
", $name, $themes{$name});
}
Atom One · scuro
use strict;
use warnings;
my %themes = (xcode =>'dark', github =>'light');
foreachmy $name (sortkeys %themes) {
printf("%-10s %s
", $name, $themes{$name});
}
GitHub · scuro
use strict;
use warnings;
my %themes = (xcode =>'dark', github =>'light');
foreachmy $name (sortkeys %themes) {
printf("%-10s %s
", $name, $themes{$name});
}
Solarized · scuro
Scegliere un tema per Perl
Regexes are where a theme earns its keep. Pick one that tints them differently from strings, or the two blur together.
Azzeccare la misura
Lascia che l’immagine segua il contenuto o bloccala su un rapporto — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3 o 3:4 — poi esporta a 1×, 2× o 3× così resta nitida su uno schermo retina. Copiala negli appunti con ⌘⇧C oppure salvala con ⌘S.