Trasforma gli snippet C in immagini che vale la pena condividere, senza uscire dal tuo Mac.
C snippets are usually posted to make a precise point about memory or pointers, so every character matters.
Codeshot riconosce C 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.
#include<stdlib.h>typedefstruct {char *code;
int scale;
} Snapshot;
intsnapshot_export(const Snapshot *s, constchar *path) {
if (s == NULL || path == NULL) return-1;
return render_and_save(s->code, path, s->scale);
}
GitHub · scuro
#include<stdlib.h>typedefstruct {char *code;
int scale;
} Snapshot;
intsnapshot_export(const Snapshot *s, constchar *path) {
if (s == NULL || path == NULL) return-1;
return render_and_save(s->code, path, s->scale);
}
Solarized · scuro
#include<stdlib.h>typedefstruct {char *code;
int scale;
} Snapshot;
intsnapshot_export(const Snapshot *s, constchar *path) {
if (s == NULL || path == NULL) return-1;
return render_and_save(s->code, path, s->scale);
}
Tokyo Night · scuro
Scegliere un tema per C
Pointer punctuation is easy to lose at small sizes. Push the font up and trim the snippet rather than fitting more in.
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.