Awk

Awk Code-Screenshot-Generator

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

Awk one-liners are shared constantly and almost always as text, where the quoting gets mangled on the way.

Codeshot erkennt Awk 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.

#!/usr/bin/awk -f
BEGIN { FS = ","; printf("%-12s %s
", "THEME", "COUNT") }

{ counts[$1]++ }

END {
    for (theme in counts)
        printf("%-12s %d
", theme, counts[theme])
}
GitHub · dunkel
#!/usr/bin/awk -f
BEGIN { FS = ","; printf("%-12s %s
", "THEME", "COUNT") }

{ counts[$1]++ }

END {
    for (theme in counts)
        printf("%-12s %d
", theme, counts[theme])
}
Solarized · dunkel
#!/usr/bin/awk -f
BEGIN { FS = ","; printf("%-12s %s
", "THEME", "COUNT") }

{ counts[$1]++ }

END {
    for (theme in counts)
        printf("%-12s %d
", theme, counts[theme])
}
Tokyo Night · dunkel

Das passende Theme für Awk

If the snippet is a one-liner, put the plain text in the post as well. An awk program people have to retype from a picture will be retyped wrong.

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 Awk und 59 weitere Sprachen

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

Für macOS laden