Page 1 of 1

Indenting only one line

Posted: Wed May 28, 2003 9:38 pm
by Richard Baldwin
I want to indent only the first line of each paragraph (as old fashioned as this may be).

Posted: Fri May 30, 2003 8:46 am
by Ed
It sounds like you need a word-processor not a text editor but, seeing as you ask, do a find and "replace all"
Search for
\n[^\t]
Replace with
\n\t
with "Regular Expression" box ticked
Go to the start of the file (Ctrl-Home) and put a tab there if there is not one.

Index first line

Posted: Fri May 30, 2003 10:52 am
by Richard Baldwin
This is quite over my head but I shall try my best.
Thank you!

Posted: Fri May 30, 2003 11:33 am
by MudGuard
Search for
\n[^\t]
Replace with
\n\t
Not a good idea - it looses the first character.
Better:
search for

Code: Select all

\n\([^\t]\)
replace by

Code: Select all

\n\t\1

Posted: Fri May 30, 2003 12:09 pm
by Ed
:oops: oops! You're right Andreas