What would be an effective way of allowing users to post inline-comments within a block of text on a web page?
For example, if there was an article such as:
congue eget ipsum. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
I would like visitors to the webpage to be able to comment on some text where they can select a few words and start typing an inline-comment. Having an index for the words so each word has a number wouldn't work because the text could be edited and then the word numbers wouldn't be accurate.
Is there anything wrong with changing the stored text and adding some markup for each comment? Such as:
congue eget ipsum. Cum sociis natoque
<user:123;comment:123>penatibus et magnis</user:123;comment:123>
dis parturient montes, nascetur ridiculus mus.
This way I could parse the text and then pull the comments from a database and display them inline or in a balloon or whatever.
Are there any better solutions for this?