RSS

 
WinEdt Macro Library  | text previous macro  | next macro

fill

Description

This macro formats a paragraph in block mode by filling the spaces.
Here is an example of text formatted by fill.edt (line length: 65 characters):

If nothing is selected, the macro selects the current  paragraph
(until  it  finds  an  empty  line).  You  can format parts of a
paragraph by selecting the  lines  before  invoking  the  macro.
Formatting  more  than  one  paragraph  at once will concatenate
them.

     If at least the first line is indented, the paragraph  will
     be aligned according to this indentation, so that the right
     margin is in correspondence with unaligned paragraphs (this
     paragraph is an example).

Installation

Put the macro in a folder (preferably %b\Macros\text\) and assign a shortcut to it if you want (e.g. CTRL-ALT-Enter).

Options

At the end of the macro file you'll find another macro that allows you to change the line length through a menu item.

Download

text/fill.edt

Macro contributed by Robert <w.m.lgmx.net>.

WinEdt Macro Library  | text previous macro  | next macro