[Tutor] Commenting a big block of code

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Wed, 19 Sep 2001 11:05:40 -0700 (PDT)


On Wed, 19 Sep 2001, Girish Gajwani wrote:

> I wish to comment out a big block of code. It is rather
> painful to go and insert a "#" in front of each line of
> code. 

For Emacs, block commenting can be done by highlighting the section, then
pressing:

    Ctrl c #

Uncommenting is similar:

    Ctrl - Ctrl c #