I think you're getting word wrapping confused with reformatting. The word
wrapping option just changes how the file is displayed; the file is not changed
at all.

I'll call the lines generated by word-wrapping "soft" and lines generated by a
real linebreak character "hard" [that's you pressing the return key].

A text file just contains text, there is no formatting options like alignment
inside it - formatting is simulated by inserting spaces at the right places.

Reformatting text; i.e. aligning and justifying, doesn't make any sense with
soft-wrapped text. None at all. You *could* "right-align" text for a
certain width without inserting hard breaks, but as soon as the display width
changed it would look totally messed-up. This is why PSPad, and every other
plain text editor under the sun, does not support this option.
 
nacho:
--------------------------------------------------------------------------------
- If I have a short line in a text file, Format menu does not allow centering
nor right-aligning.
--------------------------------------------------------------------------------

Works for me. Turn off wordwrap, select line, select menu item "Format / Block
Format / Justify Right"

nacho:
--------------------------------------------------------------------------------
- If I have a long line and word-wrapping is enabled, I can "justify" it: it
splits into several lines and is filled with blanks where necessary, but i
cannot left-align (simple split) nor center it (options are "greyed"). 

- Same situation, but word-wrapping disabled: options are not greyed in the
menu, but still I can only justify. Center and left-align do not work.
--------------------------------------------------------------------------------


For both of these, remember the formatting options only work on hard-wrapped
text. The "block align" option inserts hard wraps for you, the others don't.
That's why it doesn't work.

To do this, you have to _first_ go from soft-wrapped to hard-wrapped text :
select the long-line text, and select "Format / Block Format / Reformat". This
will split up the long line into short lines by inserting hard breaks.

Once that's done, you can use the other formatting options like
left-right-centre.

nacho:
--------------------------------------------------------------------------------
So... I would like to split a long line into several smaller lines, conserving
indentation, as old QEdit for MsDos did, but right now I have to do it manually:
reduce right margin, justify, remove extra spaces, indent using TAB...  :-( 
--------------------------------------------------------------------------------


There's no way to do this while conserving indentation, sorry. Maybe Jan will
add this in a future version. It should be quite easy to script though.

Actually, to script it you'd have to use the reformat action or manually input
the column width - there's no way to get that information inside a script.

-- 
<http://forum.pspad.com/read.php?2,43959,43960>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem