Text Diff
Compare two texts by line, word or character with side-by-side highlighting and patch export; ignore noise such as timestamps and IDs with regex rules
What can this tool do?
Line mode shows both sides next to each other and highlights the exact words that changed within modified lines.
diffcomparedifferencepatchunifiedignoreregex文本对比
Before you begin
Install through the in-app tool market. Plugins update independently; review their permissions before installing.
This website helps you discover tools and read their guides. Processing takes place in the ToolForge desktop app.
Usage and limits
- Line mode shows both sides next to each other and highlights the exact words that changed within modified lines.
- Word and character modes are handy for spotting small differences in a sentence or a config value.
- Ignoring case and whitespace only affects the comparison; the original text is still shown.
- “Copy patch” produces a standard unified diff ready for git apply or code review.
- Ignore rules: in line mode, text matched by each rule (a regex) is removed from every line before comparing — handy for timestamps, auto-increment IDs and random values. Rules stack with ignore case and whitespace, are saved for next time, and statistics use the normalized result.
Need installation help?
Know what a tool can access.
These capabilities come from the tool manifest. Host authorization and the current operation still determine actual access.
Command line & AI agents
Only the functions explicitly listed below are exposed to their declared channels. Availability also depends on the app version, tool settings and user authorization.
diff · Compare two texts by line, word or character and print a unified diff
CLI / AI Agent · Read-only
| Parameter | Type | Description |
|---|---|---|
left * | string | Original text |
right * | string | Changed text |
mode | string | Compare by lines, words or characters |
algorithm | string | Diff algorithm |
ignoreCase | boolean | Ignore letter case |
ignoreWhitespace | boolean | Ignore whitespace changes |
ignorePatterns | array | Regular expressions for lines to ignore |
tfp-text-diff diff "$(cat a.txt)" "$(cat b.txt)"