Вопрос

Is there a way to get the interactive markdown editor to do basically what a word processors "track changes" does.

For example, the editor is pre-loaded with the following text.

The small brown dog jumped over the lazy fox

Then the user changes the text to the following:

The small brown dog jumped under the lazy fox

I want the following to be displayed:

The small brown dog jumped overunder the lazy fox

Does pagedown (or any other interactive web-based markdown editor) have such a feature?

Это было полезно?

Решение

It's not fully integrated into your editor, but you can get this effect with some of the javascript diff implementations. jsdiff, for example, does what you're describing: http://kpdecker.github.com/jsdiff/ . Xindiff also does this.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top