Quick Start
First, open HeronTool's Text Diff tool. Paste the original text and the modified text into the left and right text boxes respectively. Click the "Compare" button, and the system will instantly highlight the differing lines: additions in green, deletions in red, and modifications in yellow.
File Comparison Steps
- If you need to compare files, you can also upload files directly (supports .txt, .md, etc.).
- For code files, it is recommended to use the Diff Checker tool, which provides syntax highlighting and intelligently ignores indentation differences (adjustable in settings).
- The comparison results are grouped by line; click any difference block to view surrounding context for easy pinpointing of changes.
- To share results, you can copy the comparison link or export an HTML report.
Tips
- Regularly use the Diff tool to check configuration files or code changes, avoiding accidental overwrites.
- Combine with version control (e.g., Git) to quickly compare pre- and post-commit content or audit others' modifications.
- For long texts, enable the "Ignore whitespace" option to reduce irrelevant noise.
FAQ
Q: What is the purpose of the line numbers in the comparison results? A: They correspond to the original positions in the text, helping you quickly locate lines in your editor.
Q: Can I compare binary files? A: Currently only text-like files are supported; for binary files, convert them to Base64 first.
Q: Can I download the comparison results? A: Yes, use the "Export" button to generate a text file containing the difference markers.