Hi peeps
I was just wondering is there any software that allows the user to highlight a section of a source code and specify the comment related to the highlighted area. commenting would therefore not be shown in the body of the code by default, it would either be displayed on hover over or mouse click in the same text window as the code or in a separate one. this would work similar to hyperlink. for any coding language.
Have/would u find something of this nature beneficial?
It may exist, but I wouldn't use it. It would be more likely that there would be a text editor/IDE that would "hide" comments as you suggest, but I suspect most people would not see a lot of value in them. Code folding seems more useful for hiding multi-line comments, to me.
Thanks you very much for your opinion panther, well as mentioned code foldings is very useful, there are a few minor issues that i have with it though.
but still what i had in mind could be done similar to code folding its just that by default they would be folded and would be unfolded by clicking or hovering a section of the text(this section would have some identifier letting u know that its commented).
this would almost be similar to what already exist.
one of the problem i have with the current text folding is that if i want to unfold a section of text i have to move the cursor all the way to the left (well in my editor).
I use jEdit, which has both a click to unfold, and a keyboard shortcut. You could probably modify the default C++ configuration to enhance the folding properties to auto-fold multi-line comments.
thanks ill look into that
thanks
I'm just curious why anyone would want to eliminate commenting from a source file? I understand it will reduce the amount of line therefore reducing the size of the file, but are you talking about removing it totally or just reducing it?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks