Transformez vos extraits Diff en images que l’on a envie de partager, sans quitter votre 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 détecte Diff à 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.
@@ -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 · sombre
@@ -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 · sombre
@@ -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 · sombre
Choisir un thème pour Diff
Do not trim the hunk header. The line numbers are what tell people where in the file they are looking.
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.