RSS

 
WinEdt Macro Library  | text previous macro  | next macro

continueComment

Description

The macro continues comment lines using the current line as a model.

It searches for comment characters followed by (possibly none) white spaces and uses the found string as a template. Copies the current style into the next line. It is mode-dependent, and the comment characters are defined at the beginning. It may be customized by changing the default strings (or adding new strings for different modes.)

Installation

Put the macro in %b\Macros\text\, and assign a shortcut to it if you want.

Options

You can add new strings or change the defaults at the beginning of the macro. Observe that the search uses regular expressions.

Download

text\continueComment.edt

Macro contributed by Juan Fiol <fioljumr.edu>.

WinEdt Macro Library  | text previous macro  | next macro