Transformez vos extraits Nix en images que l’on a envie de partager, sans quitter votre Mac.
Nix expressions are shared as images more often than most, because the audience is usually being talked through an unfamiliar syntax.
Codeshot détecte Nix à 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.
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
buildInputs = with pkgs; [
nodejs_20
swift
];
shellHook = ''
echo "codeshot dev shell"
'';
}
GitHub · sombre
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
buildInputs = with pkgs; [
nodejs_20
swift
];
shellHook = ''
echo "codeshot dev shell"
'';
}
Solarized · sombre
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
buildInputs = with pkgs; [
nodejs_20
swift
];
shellHook = ''
echo "codeshot dev shell"
'';
}
Tokyo Night · sombre
Choisir un thème pour Nix
Nix nests deeply and the closing braces matter. Leave enough vertical room that the expression closes inside the frame.
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.