Text Compare
Advanced side-by-side text comparison with diff highlighting and search
What is Text Compare?
Text Compare is a Blazor component that provides side-by-side text comparison with intelligent diff highlighting, search functionality, and file upload support. Perfect for document comparison, version control, and content analysis.
Key Features
- Side-by-side text comparison with synchronized scrolling
- Line-by-line diff highlighting (additions, deletions, modifications)
- File upload support for comparing text files
- Built-in search with case-sensitive option and result navigation
- Line number display with optional toggling
- Expandable fullscreen mode for detailed analysis
- Customizable colors for diff highlighting
- Whitespace ignore option for cleaner comparisons
- Multiple granularity levels (character, word, line)
- Display of file modification timestamps
- Token padding for better readability
- Responsive design with mobile support
Use Cases
- Code Review: Compare different versions of source code files
- Document Comparison: Identify changes between document revisions
- Configuration Management: Compare config files across environments
- Content Analysis: Track changes in articles, descriptions, or documentation
- Quality Assurance: Verify that changes match expected modifications
📦 Install via NuGet
After installation, add the component to your Blazor page and configure the parameters. Try the Live Demo tab to see it in action, or check the Parameters tab for full configuration options.
Ready to try it? Switch to the Live Demo tab to compare text files, or explore the Parameters tab to see all available customization options.