Skip to content

Diffs:来自 Pierre 的开源 Diff 与代码渲染库

Published:

原文链接


Diffsby The Pierre Computer Co.

HomeDocs

A diff rendering library

@pierre/diffs is an open source diff and code rendering library. It’s built on Shiki for syntax highlighting and theming, is super customizable, and comes packed with features. Made with love by The Pierre Computer Company.

Currently v1.0.2

Line selection

Turn on line selection with enableLineSelection: true. When enabled, clicking a line number will select that line. Click and drag to select multiple lines, or hold Shift and click to extend your selection. You can also control the selection programmatically. Also selections will elegantly manage the differences between split and unified views.

With love from The Pierre Computer Company

Our team has decades of cumulative experience in open source, developer tools, and more. We’ve worked on projects like Coinbase, GitHub, Bootstrap, Twitter, Medium, and more. This stuff is our bread and butter, and we’re happy to share it with you.

Join DiscordView on GitHub


Previous Post
doocs/cose: MD 编辑器的浏览器扩展,一键将文章同步到多个内容平台
Next Post
wechat-article-exporter:在线的微信公众号文章批量下载工具,支持导出阅读量与评论数据,HTML 可100%还原排版与样式