codediff.js icon indicating copy to clipboard operation
codediff.js copied to clipboard

Show metadata associated with individual lines

Open danvk opened this issue 9 years ago • 1 comments

Need some way to stick arbitrary markup under a line to show inline comments.

This will make balancing left/right sides more difficult. (Would require either table layout or JS-based layout).

danvk avatar Dec 12 '14 22:12 danvk

Here's a small demo based on how ReviewBoard handles this. The gist is that you style the left column cells to be un-selectable when the user clicks on the right side. Then you intercept the copy event and fill in the payload appropriately.

danvk avatar Dec 16 '14 23:12 danvk