I want to write a Windows add-on or application that adds the following function to any Windows text (code) editor:
- I select one or more lines of code in the editor (existing functionality of the editor)
- I right click and there's an "Insert Comment" choice which I can pick
- I type my comment and then click outside the comment edit box
- The text of the comment, along with the file name and starting line number of source code file on which I commented, are saved in program variables of my add-on/app
Note that while IDE-specific solutions for Eclipse, Visual Studio, and/or Source Insight are welcome, I'm really looking for a generic answer.
(FYI, I would then take those variables' values and write them out to the Review Board submit-comment API, meeting my goal of being able to submit comments using Review Board while browsing code in my Windows IDE.)