I am working on making a textarea editable by multiple people - using mobwrite. mobwrite uses diff-match-patch in its working. It does the job well of synchronizing the textarea between various people. Now, what I wanted was to highlight the patches coming from different users in different colors.
For doing this, I will have to somehow colorize a "range of text" in a textarea? (with out ofcourse editing the textarea itself directly!)
I have already read about two syntax highlighters - codemirror and editarea. They have useful functions for obtaining start and end of "range of text". But, I couldn't find a way of colorizing this selection range without loading LOT OF unnecessary javascript code.
Please suggest how I can achieve "colorizing a range of text in a textarea". Thank you.