Makefile

Generatore di immagini di codice Makefile

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

Makefiles are all whitespace semantics, which is exactly the thing that breaks when someone pastes them into a chat window.

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

THEME ?= xcode
SCALE ?= 2

.PHONY: shots
shots: $(patsubst src/%.swift,out/%.png,$(wildcard src/*.swift))

out/%.png: src/%.swift
	@mkdir -p out
	codeshot export $< --theme $(THEME) --scale $(SCALE) --out $@
Edge · scuro
THEME ?= xcode
SCALE ?= 2

.PHONY: shots
shots: $(patsubst src/%.swift,out/%.png,$(wildcard src/*.swift))

out/%.png: src/%.swift
	@mkdir -p out
	codeshot export $< --theme $(THEME) --scale $(SCALE) --out $@
GitHub · scuro
THEME ?= xcode
SCALE ?= 2

.PHONY: shots
shots: $(patsubst src/%.swift,out/%.png,$(wildcard src/*.swift))

out/%.png: src/%.swift
	@mkdir -p out
	codeshot export $< --theme $(THEME) --scale $(SCALE) --out $@
Tokyo Night · scuro

Scegliere un tema per Makefile

Recipes must be indented with tabs, and an image is the only way to share one without a well-meaning editor converting them to spaces.

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 Makefile e altri 59 linguaggi

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

Scarica per macOS