{"id":30858574,"url":"https://github.com/linxueyuanstdio/diffchecker","last_synced_at":"2026-02-11T08:36:43.105Z","repository":{"id":304677948,"uuid":"1019572633","full_name":"LinXueyuanStdio/DiffChecker","owner":"LinXueyuanStdio","description":"差异对比器 DiffChecker","archived":false,"fork":false,"pushed_at":"2025-07-14T14:44:18.000Z","size":377,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-14T18:37:04.399Z","etag":null,"topics":["diff","diffchecker"],"latest_commit_sha":null,"homepage":"http://linxueyuan.online/DiffChecker/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinXueyuanStdio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-14T14:33:28.000Z","updated_at":"2025-07-14T14:44:21.000Z","dependencies_parsed_at":"2025-07-14T18:38:40.927Z","dependency_job_id":"f1e79dde-a97e-4cfb-ae1e-347505efae3a","html_url":"https://github.com/LinXueyuanStdio/DiffChecker","commit_stats":null,"previous_names":["linxueyuanstdio/diffchecker"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/LinXueyuanStdio/DiffChecker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinXueyuanStdio%2FDiffChecker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinXueyuanStdio%2FDiffChecker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinXueyuanStdio%2FDiffChecker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinXueyuanStdio%2FDiffChecker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinXueyuanStdio","download_url":"https://codeload.github.com/LinXueyuanStdio/DiffChecker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinXueyuanStdio%2FDiffChecker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274046005,"owners_count":25212983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["diff","diffchecker"],"created_at":"2025-09-07T14:14:09.654Z","updated_at":"2026-02-11T08:36:38.062Z","avatar_url":"https://github.com/LinXueyuanStdio.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DiffChecker 文本差异检查器\n\n一个现代化、功能强大的文本差异检查工具，支持多种编程语言语法高亮和多种对比算法。\n\n## ✨ 特性\n\n- 🎨 **现代化 UI** - 采用 Tailwind CSS 设计，支持深色/浅色主题切换\n- 🌐 **多语言支持** - 支持中文和英文界面\n- 📝 **代码编辑器** - 集成 CodeMirror 编辑器，支持语法高亮\n- 🔧 **多种对比算法**：\n  - 并排对比 (Side by Side) - 左右并排显示差异\n  - 统一对比 (Unified) - 合并显示差异结果\n  - 字符级对比 (Character Level) - 精确到字符的差异检测\n- 🎯 **语言支持** - 支持多种编程语言语法高亮：\n  - Markdown, JavaScript, Python, HTML/XML\n  - CSS, SQL, Java, C/C++, Shell\n  - YAML, Dockerfile 等\n- 📁 **文件操作** - 支持文件上传、拖拽和示例加载\n- 📋 **剪贴板功能** - 一键复制粘贴文本内容\n- 📊 **统计信息** - 实时显示新增、删除、修改行数统计\n- 🚀 **性能优化** - 高效的差异算法，支持大文件比较\n\n## 🌐 在线演示\n\n[点击这里查看在线演示](https://linxueyuanstdio.github.io/DiffChecker/)\n\n## 📸 截图\n\n![差异对比](./screenshot.png)\n\n## 🚀 快速开始\n\n### 在线使用\n\n直接访问 [在线版本](https://linxueyuanstdio.github.io/DiffChecker/) 即可开始使用。\n\n### 本地部署\n\n1. **克隆仓库**\n   ```bash\n   git clone https://github.com/LinXueyuanStdio/DiffChecker.git\n   cd DiffChecker\n   ```\n\n2. **启动服务**\n   ```bash\n   # 使用 Python 启动本地服务器\n   python -m http.server 8000\n\n   # 或使用 Node.js\n   npx serve .\n\n   # 或使用任何其他静态文件服务器\n   ```\n\n3. **访问应用**\n   打开浏览器访问 `http://localhost:8000`\n\n## 📖 使用方法\n\n### 基本使用\n\n1. **输入文本**\n   - 在左侧\"源文本\"框中输入或粘贴原始文本\n   - 在右侧\"目标文本\"框中输入或粘贴修改后的文本\n\n2. **选择语言**\n   - 从语言下拉菜单中选择对应的编程语言以启用语法高亮\n\n3. **选择对比算法**\n   - **并排对比**：左右并排显示两个文本，差异部分高亮显示\n   - **统一对比**：将两个文本合并显示，差异部分用不同颜色标记\n   - **字符级对比**：不仅检测行差异，还检测每行内的字符级差异\n\n4. **查看结果**\n   - 点击\"比较\"按钮查看差异结果\n   - 查看统计信息了解变更概览\n\n### 高级功能\n\n- **文件上传**：点击\"上传文件\"按钮直接加载本地文件\n- **拖拽支持**：将文件直接拖拽到编辑器区域\n- **示例加载**：点击\"加载示例\"快速体验功能\n- **主题切换**：支持深色和浅色主题\n- **多语言界面**：支持中英文界面切换\n\n## 🎨 颜色标识\n\n- 🟢 **绿色** - 新增内容\n- 🔴 **红色** - 删除内容\n- 🟡 **黄色** - 修改内容\n- ⚪ **灰色** - 上下文内容\n\n## 🛠️ 技术栈\n\n- **前端框架**: 纯 HTML/CSS/JavaScript\n- **UI 框架**: [Tailwind CSS](https://tailwindcss.com/)\n- **编辑器**: [CodeMirror 5](https://codemirror.net/)\n- **图标**: [Font Awesome 4](https://fontawesome.com/v4.7.0/)\n- **差异算法**: 自实现的文本差异算法\n\n## 📁 项目结构\n\n```\nDiffChecker/\n├── index.html          # 主页面文件\n├── README.md          # 项目说明文档\n└── LICENSE           # 开源协议\n```\n\n## 🌟 支持的文件格式\n\n- **文本文件**: `.txt`, `.md`\n- **Web 技术**: `.html`, `.css`, `.js`, `.ts`, `.jsx`, `.tsx`\n- **编程语言**: `.py`, `.java`, `.c`, `.cpp`, `.go`, `.rs`, `.php`, `.rb`\n- **配置文件**: `.json`, `.xml`, `.yaml`, `.yml`\n- **脚本文件**: `.sh`, `.sql`\n- **框架文件**: `.vue`, `.svelte`\n\n## 🤝 贡献指南\n\n欢迎贡献代码！请遵循以下步骤：\n\n1. Fork 本仓库\n2. 创建特性分支 (`git checkout -b feature/AmazingFeature`)\n3. 提交更改 (`git commit -m 'Add some AmazingFeature'`)\n4. 推送到分支 (`git push origin feature/AmazingFeature`)\n5. 开启 Pull Request\n\n## 📝 更新日志\n\n### v1.0.0 (2025-07-14)\n- ✨ 初始版本发布\n- 🎨 现代化 UI 设计\n- 🔧 支持三种对比算法\n- 🌐 多语言界面支持\n- 📁 文件上传和拖拽功能\n\n## 📄 开源协议\n\n本项目基于 [MIT License](LICENSE) 开源协议。\n\n## 🙏 致谢\n\n- [Tailwind CSS](https://tailwindcss.com/) - 现代化 CSS 框架\n- [CodeMirror](https://codemirror.net/) - 强大的代码编辑器\n- [Font Awesome](https://fontawesome.com/) - 优秀的图标库\n\n## 📞 联系方式\n\n如有问题或建议，请通过以下方式联系：\n\n- GitHub Issues: [提交问题](https://github.com/LinXueyuanStdio/DiffChecker/issues)\n- Email: your-email@example.com\n\n---\n\n⭐ 如果这个项目对你有帮助，请给它一个 Star！\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinxueyuanstdio%2Fdiffchecker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinxueyuanstdio%2Fdiffchecker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinxueyuanstdio%2Fdiffchecker/lists"}