Comment and uncomment

You can easily comment and uncomment sections of code in Code view. Microsoft Expression Web detects what language you're working with and automatically adds appropriate comment characters for that language.

Tip

The supported languages for this feature are HTML, CSS, JavaScript, and PHP.

To comment out a block of code

  1. In Code view, select the block of code you want to comment out.

  2. Do one of the following:

    • In the Code View menu, click w4_icon_comment.

    • Press CTRL + J.

To uncomment a block of code

  1. In Code view, select the commented block of code you want to uncomment.

  2. Do one of the following:

    • In the Code View menu, click w4_icon_uncomment.

    • Press CTRL + SHIFT + J.

See also

Concepts

Working with code
Using code views

Other resources

Editing code

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.