Text
String Diff
Compare two strings and show differences.
How to use it
- Open Devly from the wrench in your menu bar, or press ⌃⌥⌘D. Press ⌘P, type String Diff and press Return.
- Paste or type your text into Input.
- Adjust the Options on the right if you need to. The defaults are listed below.
- Press Compare, or ⌘↵.
- Use Copy or ⇧⌘C to copy the result. ⌘L clears everything.
What to enter
Enter two texts separated by a line containing only '---' Text 1 --- Text 2
Options
| Option | Values | Default |
|---|---|---|
| Comparison levelLevel of detail for comparison | Lines, Words, Characters | Lines |
| Ignore whitespaceIgnore whitespace differences | On or off | Off |
| Ignore caseCase-insensitive comparison | On or off | Off |
| Show unified diffShow in unified diff format | On or off | On |
Example
Real output from Devly, with the default options.
Input
The quick brown fox jumps over the lazy dog. --- The quick red fox jumps over the sleepy dog.
Summary
+2 -2 ~0 changes
Diff
- The quick brown fox - jumps over the lazy dog. + The quick red fox + jumps over the sleepy dog.
From Terminal
With the free command-line tool installed:
Terminal
devly diff --path input.txt # or pipe text in pbpaste | devly diff
Quick Switch also finds it by: diff, compare, difference, text, merge, change.
More Text tools
String CaseConvert text between camelCase, snake_case, kebab-case, and moreRegex TesterTest and debug regular expressions with match highlightingRegex LibraryBrowse and copy common regex patternsLine SorterSort, shuffle, dedupe, and manipulate text linesText StatisticsAnalyze text for word count, character frequency, and readabilityString EscapeEscape and unescape strings for various languages