开发者

Rails wiki highlight/strikethrough version differences between article versions

开发者 https://www.devze.com 2023-01-03 18:43 出处:网络
I\'m wondering how to implement highlighting of changes to user edited articles on a wiki style rails project. Since开发者_运维知识库 articles may be fairly lengthy I\'d ideally like strikethrough and

I'm wondering how to implement highlighting of changes to user edited articles on a wiki style rails project. Since开发者_运维知识库 articles may be fairly lengthy I'd ideally like strikethrough and highlighting, similar to github and wikipedia for example. Despite searching around the net I've not really come up with much, apart from instiki which is a complete wiki application.

Thanks in advance for any advice.


To implement in Rails, you should use the a version management gem such as vestal version. Ryan Bates did an excellent screen-cast on the subject. Once you get the versioning of articles, you will want to use the html-diff (or a similar library) to do the html output.

0

精彩评论

暂无评论...
验证码 换一张
取 消