c# realtime network text editor
So... it's rather complicated, but basically I want to make a network based text editor, wh开发者_如何学运维ere multiple people can edit the same document at the same time. Think Google Docs. How would I go about doing this?
If it helps any, I have an FTP server, and a MySql database.
Do you want to create one, or do you need one? If the latter then try EtherPad, it's great for that.
If you want to create it, well, the source to EtherPad is available, you could use it as a starting point.
If you are thinking only about text-editing i.e. no formatting, then it can be done fairly easily. Operational transformation is the way to go (it also supportformatting but the text-only-editing part is a lot easier to work out and implement). Etherpad uses it to power it's collaboration capability. There are plenty of algorithms out there. You can start off by taking a look at this http://cooffice.ntu.edu.sg/otfaq/.
精彩评论