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은 붙여넣은 코드에서 Diff을 판별하므로 언어 선택을 잘못할 일이 없습니다. 기본 제공되는 30가지 테마 가운데 세 가지로 같은 스니펫을, 앱 자체 스타일시트로 렌더링했습니다.
@@ -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 · 다크
@@ -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 · 다크
@@ -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 · 다크
Diff에 어울리는 테마 고르기
Do not trim the hunk header. The line numbers are what tell people where in the file they are looking.
크기를 제대로 맞추기
이미지를 내용에 맞추거나 비율로 고정하세요 — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3, 3:4 — 그런 다음 1×, 2×, 3× 중에서 골라 내보내면 레티나 화면에서도 또렷합니다. ⌘⇧C로 클립보드에 바로 복사하거나 ⌘S로 저장할 수 있습니다.