This keystroke macro is what I call a "smart" paragraph reformatting
macro. Its main feature is that it figures out the current LEFT margin
of the paragraph you are reformatting, and uses it in the reformat,
thereby preserving the indentation of the paragraph. You don't have to
set the left margin yourself (Config->Preferences, etc).
The macro does NOT try to determine the current RIGHT margin setting for the paragraph. It uses whatever you currently have set. This makes it
handy for widening successive paragraphs, while preserving their
indentation levels - just set a higher number for the right margin and
keep hitting the hot key as the cursor jumps from paragraph to
paragraph.
The cursor does not have to be positioned at the beginning of a
paragraph - anywhere inside the paragraph will do.
[VISUAL EXIT]CF(W_WORD_WRAP,1)Do_Visual(/\NW\\NW\\PP\/) VM(8) Line(0)
if (Cur_Char==32){ Do_Visual(/\NW\/) VM(8) }Format_Para(Win_Hor)
|
|