Command Reference — Convert category — Comment command

# Comment command

## Summary

Comments out the selection or current line.

## Description

Comments out the selected area by inserting the comment marks at the beginning and end of the selection. If there is no selection, this command comments out the current line. This command does not apply to text-only configurations.

## How to Run

- Default Menu: Convert > Comment

- All Commands: Convert > Comment

- Toolbar:

- Status Bar: None

- Default Keyboard Shortcut: None

## Plug-in Command ID

    EEID_EDIT_COMMENT (4371)

## Macros

### [JavaScript]

    editor.ExecuteCommandByID(4371);

### [VBScript]

    editor.ExecuteCommandByID 4371