Transformez vos extraits C en images que l’on a envie de partager, sans quitter votre Mac.
C snippets are usually posted to make a precise point about memory or pointers, so every character matters.
Codeshot détecte C à partir du code que vous collez : aucun sélecteur de langage à se tromper. Voici le même extrait dans trois des 30 thèmes fournis, rendus avec les feuilles de style de l’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 · sombre
#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 · sombre
#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 · sombre
Choisir un thème pour C
Pointer punctuation is easy to lose at small sizes. Push the font up and trim the snippet rather than fitting more in.
Trouver la bonne taille
Laissez l’image suivre votre contenu ou fixez un rapport — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3 ou 3:4 — puis exportez en 1×, 2× ou 3× pour qu’elle reste nette sur un écran retina. Copiez-la dans le presse-papiers avec ⌘⇧C ou enregistrez avec ⌘S.