For instance, in Emacs C-c ; comments (or uncomments) the region (see e.g. <a href="http://www.gnu.org/software/auctex/manual/auctex/Commenting.html#Commenting">http://www.gnu.org/software/auctex/manual/auctex/Commenting.html#Commenting</a> for details).