ToggleComment

-- compatible with WinEdt version(s) 10, 9, 8, 7 --

Description

This package installs a macro that "block un/comments" lines containing the selected text. It acts like many other code editors, commenting out uncommented lines and uncommenting commented lines in designated files (e.g., TeX, EDT). It is a no-op in designated other files (e.g., HTML).

Installation

Open the macro file Install.edt in WinEdt, and execute it by choosing Macros | Execute Current Macro.

Uninstallation

Open the macro file Uninstall.edt in WinEdt (also available in %b\Uninstall\ToggleComment folder), and then execute it by choosing Macros | Execute Current Macro.

Usage

Simply press Ctrl+Q to "block un/comments" lines. Alternatively, you can right-click on selected lines and choose Toggle Comment in the Selected popup menu (v10 only).

The comment string can be customized per mode. Please refer to the macro file for details.

Download

For WinEdt 7.x:   ToggleComment_7.zip

For WinEdt 8.x, 9.x:   ToggleComment_8.zip

For WinEdt 10.x:   ToggleComment_10.zip


Package contributed by Geoffrey Jones <geofj22@gmail.com>