All apps/colordiff

colordiff

colordiff

The Perl script colordiff is a wrapper for 'diff' and produces the same output but with pretty 'syntax' highlighting.

Runs as colordiff|macOS, Linux, Windows|www.colordiff.org

Command form

ai-draft · 1 task · 6 fields

Run colordiff on two files, which wraps diff and colours its output. Other options are passed through to diff and are not modelled here; use `diff ... | colordiff` for piped input.

Opens the form; the finished command lands at your prompt, unrun
otty gui colordiff
Compare two files in colourExample values, fixed in this page — nothing here reaches a terminal
Basic
Old file*
file
New file*
file
Diff format
6 choicesenum
Advanced
Colour output
2 choicesenum
TasksEach one presets the form for one job
Compare two files
old_filenew_filedifftypecolor
ParametersOnly these flags are editable in the form
Colour output
Force or suppress colour codes.
enum
--coloryesno
Colour only in a terminal
boolean
--color-term-output-only
Diff format
Force the diff format instead of auto-detecting it.
enum
--difftypediffdiffcdiffudiffydebdiffwdiff
Always exit 0
Force the exit code to zero instead of diff's exit code.
boolean
--fakeexitcode
Old file
path · positional 0
New file
path · positional 1
SourcesEvery flag above is checked against these
help
colordiff will send most options through to diff, but there are various colordiff-specific options which can be used: --help --color=(yes|no) Force (or suppress) display of colours in output --color-term-output-only Force colour to only appear in terminal output --difftype=DIFFTYPE Force difftype detection to specified format. DIFFTYPE can be: diff, diffc, d…
manualdebian unstable

manpages.debian.org

Before it fills your prompt, Otty checks the installed colordiff against its version. A form that does not match your version is not offered.