C

C Code-Screenshot-Generator

Verwandle C-Snippets in Bilder, die man gerne teilt — ohne deinen Mac zu verlassen.

C snippets are usually posted to make a precise point about memory or pointers, so every character matters.

Codeshot erkennt C an dem Code, den du einfügst; es gibt also keine Sprachauswahl, die man falsch treffen kann. Hier ist dasselbe Snippet in drei der 30 mitgelieferten Themes, gerendert mit den Stylesheets der App.

#include <stdlib.h>

typedef struct {
    char *code;
    int scale;
} Snapshot;

int snapshot_export(const Snapshot *s, const char *path) {
    if (s == NULL || path == NULL) return -1;
    return render_and_save(s->code, path, s->scale);
}
GitHub · dunkel
#include <stdlib.h>

typedef struct {
    char *code;
    int scale;
} Snapshot;

int snapshot_export(const Snapshot *s, const char *path) {
    if (s == NULL || path == NULL) return -1;
    return render_and_save(s->code, path, s->scale);
}
Solarized · dunkel
#include <stdlib.h>

typedef struct {
    char *code;
    int scale;
} Snapshot;

int snapshot_export(const Snapshot *s, const char *path) {
    if (s == NULL || path == NULL) return -1;
    return render_and_save(s->code, path, s->scale);
}
Tokyo Night · dunkel

Das passende Theme für C

Pointer punctuation is easy to lose at small sizes. Push the font up and trim the snippet rather than fitting more in.

Die richtige Größe

Lass das Bild dem Inhalt folgen oder lege es auf ein Verhältnis fest — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3 oder 3:4 — und exportiere dann mit 1×, 2× oder 3×, damit es auf Retina-Displays scharf bleibt. Kopiere es mit C direkt in die Zwischenablage oder sichere mit S.

Sieh dir alle 30 Themes im Vergleich an oder lies den kompletten Ablauf.

Gebaut für C und 59 weitere Sprachen

Alles läuft auf deinem Mac. Dein Code verlässt ihn nie.

Für macOS laden