Skip to content

Conversation

@GhDj
Copy link
Owner

@GhDj GhDj commented Dec 14, 2025

Summary

  • Add new Diff Checker tool for comparing texts side-by-side
  • Uses LCS (Longest Common Subsequence) algorithm for accurate diffs
  • Visual highlighting of additions and deletions

Features

  • Side-by-side View: Original and modified text shown in parallel
  • Line Highlighting: Green for additions, red for deletions
  • Line Numbers: Shows line numbers for easy reference
  • Statistics: Count of added, removed, and unchanged lines
  • Ignore Options: Toggle whitespace and case sensitivity
  • Swap Function: Quickly swap original and modified texts
  • Sample Code: Load example to test the tool

Test plan

  • Verify diff tool page loads at /tools/diff
  • Test comparison with sample code
  • Verify highlighting works correctly
  • Test ignore whitespace/case options
  • All 273 tests pass

- Side-by-side text comparison with LCS algorithm
- Highlight additions (green) and deletions (red)
- Line numbers for both sides
- Statistics showing added, removed, unchanged lines
- Ignore whitespace and case options
- Swap texts functionality
- Sample code for testing
@GhDj
Copy link
Owner Author

GhDj commented Dec 15, 2025

Merged via cherry-pick into develop

@GhDj GhDj closed this Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants