Intelligent Line Commenting
Posted: Fri Jan 22, 2010 2:02 pm
I've tried the macros for commenting lines of code, but they seem to work best for only certain languages. I would like to see a menu/keyboard feature to "Comment/Uncomment" selected lines where it uses the comment setting from the syntax file for the detected document class. I should be able to select the lines of code, and either click on a menu item or press something like CTRL+K or whatever, and have it insert or remove (toggle) comment character insertions.
Better than that, would be for languages that support multi-line comments, like PHP, C++, Perl, Java, PowerShell, it would insert only two demarkations in the file (start and end symbols) where languages that do not (ie. VBscript) simply inserts the single-line comment character on each selected line. Even if it could only do the latter for all languages that would be very helpful.
Better than that, would be for languages that support multi-line comments, like PHP, C++, Perl, Java, PowerShell, it would insert only two demarkations in the file (start and end symbols) where languages that do not (ie. VBscript) simply inserts the single-line comment character on each selected line. Even if it could only do the latter for all languages that would be very helpful.