如何對比兩段文字(免費)
要點
- 貼上
- 比較
- 外觀
Finding by eye what changed between a before and after text is hard. Compare Two Texts (Diff) lets you paste two texts and shows the differences. The pasted text is compared inside this device and sent nowhere.
步驟
- Paste the before-edit text into "Text A (before)".
- Paste the after-edit text into "Text B (after)".
- If needed, tick "Ignore case" and "Ignore spaces at the start and end of lines".
- 點選「比較」。
- Added and removed lines are shown under "See the differences".
For identical text, "No differences (the texts are the same)" is shown.
Reading the result
- Added and removed lines are shown colour-coded.
- Because it compares line by line, judge which part of a line changed by looking at the lines around it.
適合
- Checking the changes in a text
- Comparing a manuscript before and after proofreading
- Checking revisions to emails or terms
- Checking changes to configuration files or code
Tips before comparing
- Texts of the same form (similar line-break positions) make differences easier to find
- Split long texts by chapter or paragraph and compare
- If differences in spaces or case get in the way, use the options
示例
Compared a proposal's text before and after a supervisor's corrections. The three changed places were clear at once.
Common stumbling blocks
- Everything shows as different: line-break positions differ. Compare again by paragraph.
- "Too many lines (up to 3000)" appears: split the text and compare.
- Differences appear though it looks the same: differences in spaces or full-width/half-width.
Frequently asked questions
Can differences be seen character by character?
This tool works line by line.
Is the pasted text sent?
No. It is compared inside the browser.
小結
Paste before and after and press "Compare". You can see added and removed parts line by line.
使用「對比兩段文字的差異」(免費)搭配使用的工具
- 比較兩個 PDF(找出差異):用顏色區分,顯示兩個 PDF 之間的文字差異。
- 刪除重複行並排序:刪除重複的行並排序。
- 文字數統計(用於求職申請表和報告):統計文字的字數、行數和稿紙張數。