Trasforma gli snippet Diff in immagini che vale la pena condividere, senza uscire dal tuo Mac.
Diffs are the single best argument for sharing code as an image: the green and red carry the meaning, and both are lost the moment it becomes plain text.
Codeshot riconosce Diff 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.
@@ -12,7 +12,7 @@ struct Snapshot {
let code: String
var theme: Theme = .xcode
- var scale: Int = 1+ var scale: Int = 2
func export(to path: URL) throws {
Atom One · scuro
@@ -12,7 +12,7 @@ struct Snapshot {
let code: String
var theme: Theme = .xcode
- var scale: Int = 1+ var scale: Int = 2
func export(to path: URL) throws {
GitHub · scuro
@@ -12,7 +12,7 @@ struct Snapshot {
let code: String
var theme: Theme = .xcode
- var scale: Int = 1+ var scale: Int = 2
func export(to path: URL) throws {
Solarized · scuro
Scegliere un tema per Diff
Do not trim the hunk header. The line numbers are what tell people where in the file they are looking.
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.