I've a requirement where I'll show the HTML page(basically a source file of java) to the end user. I am looking for 开发者_StackOverflow社区an option to select few lines like... during onClick it should start selecting the line and upon releasing click it should select the lines I've scrolled and underneath it should show the text area to enter my comments and also it should provide a button to submit comment I entered. Any help in this regard is well appreciated.
You want a text annotator.
Something like this one for jQuery (scroll down for the demo).
精彩评论