RSS

 
WinEdt Macro Library  | text previous macro  | next macro

ToggleComment

Description

This macro "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

To install this macro, copy this file to %b\Macros\text and assign it a shortcut of your choice (e.g., Ctrl+Q in keeping with many other code editors).

Options

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

Download

text/Toggle Comment.edt

Macro contributed by Geoffrey Jones <geofj22gmail.com>

WinEdt Macro Library  | text previous macro  | next macro