secarica: -------------------------------------------------------------------------------- Myes, I can give a try, only that this way everything containing n spaces will be affected, not only the start of lines (that is some inline comments, position of comments at the end of line code, maybe other things too).
But thanks for the idea, that could be a starting point (right now I need to expand a code from 2/4/6/etc. leading spaces per line to 4/8/12/etc. spaces). Cristi -------------------------------------------------------------------------------- Hi, for expanding the indentation spaces, you can use regular expression replacement; I believe, something like this might work: >> Search for >>> ^( +)([^ ]) >>> replace with >>> $1$1$2 [x] Regular expressions i.e. all spaces from the beginning of the line up to the first non-space character are replaced with the doubled amount of spaces and the original following character. Make sure to test it acording to your needs and code befor applying to to you codebase. The opposite conversion to reduce the indentation cannot be done using a single regex in PSPad (as far as I know). You could use the same method to anchor for the beginning of the line and the first non-space character, but you must enter the needed amounts of spaces manually step by step. hth, vbr -- <http://forum.pspad.com/read.php?2,62402,62409> PSPad freeware editor http://www.pspad.com
