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等專用工具。

相關工具