Hi,

Aspects of this topic have been talked around in other posts on this forum, but
I don't think they completely match what I'm seeing.

I'm working with some archaic legacy code, which needs hard (8-char) tabs to
start the line, and to separate mnemonics and arguments etc. I also want
trailing spaces trimmed.

I turn on "Real Tabs" and "Trim Trailing Spaces", and set tab width to 8 (both
in the Program Settings - Editor page 2, and also in the Highlighters Settings).
It doesn't matter whether I check "Auto Indent Mode" or not.

If I type "<tab>aa<tab>aa", what I get is 

   >>   aa......aa

that is, the second tab is replaced with spaces.

When I turn "Trim Trailing Spaces" off, I get the two tabs as expected.

Another interesting thing about this is, when I have "Special Chars" visible,
pressing <tab> moves the cursor but doesn't show any characters at all. When I
press a non-whitespace character, the line is back-filled with spaces unless
it's the start of the line, in which case a tab is inserted.

So for another example, typing "<tab><tab><tab>aa" gives

   >>      >>      >>aa

but typing "aa<tab><tab><tab>aa" I get

aa......................aa

Is this expected behaviour? Can someone tell me a setting which will enable me
to combine "Real Tabs" and "Trim Trailing Spaces" with the results I expect? Or
if it's a bug in the program, can I respectfully request that it be looked
into?

Thanks for PSPad, it's 99.5% perfect for my use :)

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

Odpovedet emailem