Nix

Generatore di immagini di codice Nix

Trasforma gli snippet Nix in immagini che vale la pena condividere, senza uscire dal tuo Mac.

Nix expressions are shared as images more often than most, because the audience is usually being talked through an unfamiliar syntax.

Codeshot riconosce Nix 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.

{ pkgs ? import <nixpkgs> { } }:

pkgs.mkShell {
  buildInputs = with pkgs; [
    nodejs_20
    swift
  ];

  shellHook = ''
    echo "codeshot dev shell"
  '';
}
GitHub · scuro
{ pkgs ? import <nixpkgs> { } }:

pkgs.mkShell {
  buildInputs = with pkgs; [
    nodejs_20
    swift
  ];

  shellHook = ''
    echo "codeshot dev shell"
  '';
}
Solarized · scuro
{ pkgs ? import <nixpkgs> { } }:

pkgs.mkShell {
  buildInputs = with pkgs; [
    nodejs_20
    swift
  ];

  shellHook = ''
    echo "codeshot dev shell"
  '';
}
Tokyo Night · scuro

Scegliere un tema per Nix

Nix nests deeply and the closing braces matter. Leave enough vertical room that the expression closes inside the frame.

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.

Guarda tutti i 30 temi a confronto oppure leggi il flusso completo.

Pensato per Nix e altri 59 linguaggi

Tutto gira sul tuo Mac. Il tuo codice non lo lascia mai.

Scarica per macOS