English 中文(简体)
贾瓦·古斯塔法(封闭式)
原标题:JavaScript based diff utility [closed]

我们不准许对书籍、工具、软件图书馆以及更多的图书馆征求建议的问题。 你可以ed问这个问题,以便用事实和引言回答。

Closed 8 years ago.

I m 寻求一份diff等值文件,在Script文中写成,只有相关的回归/印本。 我不想在强调差异的情况下相互展示出全文,而只想了解实际差异(加上一些缓冲线了解差异之处),类似于气球分散效用的产出。

是否有任何人知道这种 j印功能? 应当承认所有差异(甚至改变了白人空间)。 感谢。

最佳回答

https://github.com/cemerick/jsdifflib”rel=“noretinger”>jsdifflib 在线模式比较,试图夸大背景规模,只展示你想要的变革之窗。 http://cemerick.github.com/jsdifflib/demo.html“rel=“noreferer”>

问题回答

我完全重建了加速的支流效用。 由于我的版本并不要求人力部至少能更快地获得这一版本,而且这一版本也是为了强调每一行的特性差异。

http://prettydiff.com/diffview.js

可在http://prettydiff.com/上用在线工具直接测试。

  • Mergely is totally worth checking out. CodeMirror-based, client-side only.
  • Then there s the CodeMirror demo which requires server-side diff computation.
  • jsdifflib and prettydiff as mentioned in other answers.

最低执行额:

查阅CodeMirror。 Nuff说。

我非常了解一下气球或气球的散射效用,但这可能是你所期待的jsdifflib。 你可以在那里找到一个活的例子,看看看它是否为你工作。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签