artico: -------------------------------------------------------------------------------- pspad: -------------------------------------------------------------------------------- Program settings / Editor (part 1) uncheck Autoindent mode --------------------------------------------------------------------------------
Hi, I had already unchecked Autoindent mode: this looks not to influence the particular behaviour I described. The thing which is strange to me is that it happens without any clear rule. A command (like Ctrl-BackSpace) to suppress spaces from the cursor to the beginning of next non-space character would be very nice. I tried to implement it with a macro, but I had no success so far. Indeed, the sequence of key-strokes "F8, Ctrl-RightArrow, F8, Delete" turns out to be recorded in the macro just as "ecDeleteChar". Kind regards, Giuliano -------------------------------------------------------------------------------- Hi, the behaviour you described seems rather strange, with autoindent unchecked the cursor should be placed at the beginning if the next line after pressing Enter. You may check, whethere there aren't any scripts for indentation in the Script folder of PSPad (e.g. CIndent etc.) As for the trailing whitespace, you can try the setting: Editor part 1: [x] Trim trailing spaces, if this kind of "magic" suit your needs. There is also a specialised function Edit: Lines manipulation: Remove redundant spaces... with the options for starting, trailing and inline (redundant) whitespace to remove. Unfortunately, it works for the whole text or over selection, hence it can't be used to clean the end of the current line. One can also search for a regular expression \s+ and delete or replace it as needed (probably in the previously made selection - be sure to select right to left for the forward replacement to include the selected text). The macro functionality is indeed rather limited, Scripts are far more powerful; you may check the documentation in ...\Script\readme.rtf hth vbr -- <http://forum.pspad.com/read.php?2,52453,52467> PSPad freeware editor http://www.pspad.com
