RevealTheme logo

文本对比工具(Diff)

逐行对比两段文本。用彩色标注出新增、删除以及未改动的行。

如何使用本工具

  1. 1

    Paste or type the original version into the left textarea labeled Original.

  2. 2

    Paste or type the changed version into the right textarea labeled Modified.

  3. 3

    Read the result panel below: lines prefixed with a minus and shown in red were removed, lines prefixed with a plus and shown in green were added, and lines prefixed with an equals sign are unchanged.

  4. 4

    Edit either box to refine your input; the diff recomputes instantly as you type.

什么是文本对比工具(Diff)?

差异对比(diff)工具会比较一段文本的两个版本,并高亮显示发生了哪些变化。适用于对比配置文件、合同、代码修订,或任意文档的两个版本。本工具完全在你的浏览器中运行:不会上传任何数据。

常见使用场景

  • Spot which keys changed between two versions of a .env or config file pasted side by side.

  • Compare two revisions of a short paragraph or email draft before sending the edited version.

  • Check what a teammate altered in a snippet they pasted into chat versus your local copy.

  • Verify that a find-and-replace did exactly what you intended across a block of text.

  • Review line-level differences between two SQL queries or log excerpts of similar length.

  • Confirm two lists (allowlists, redirect rules, CSV rows) are identical or see exactly where they diverge.

常见问题

支持单词级别的对比吗?
本工具为行级别对比。如需单词级别的高亮,请使用Meld或VS Code等专用工具。

相关工具