Note: when I said ^p, I meant exactly that--a caret followed by a
lowercase p. Not Ctrl+p, but ^p, literally. That's the Find/Replace symbol
for matching a normal paragraph mark.
From what you're saying, it sounds like there are non-standard paragraph
breaks for some lines (i.e., something that doesn't match ^p) and regular
paragraph breaks for other lines.
When I said "insert a paragraph mark at the beginning," I meant simply
"press Enter", and I was assuming that your hosts file began with an ip
number, rather than with a comment (line beginning with #).
Let's try this a different way (and I assume you're working with a copy of
the hosts file):
Select all of the lines you want to change--this will let find/replace
affect only the selected lines.
Press Ctrl+H
Set Find what: to ^13 (this will match normal and non-standard paragraph
marks)
Set Replace with: to ^p127.0.0.1<5 spaces> (I.e., press the space bar 5
times)
Click Replace all.
Say No to the prompt asking if you want to apply the find/replace to the
rest of the file.
You will need to add 127.0.0.1 manually to the first item, and remove the
extraneous 127.0.0.1 at the end of the list.
Does that do it?
--
Herb Tyson MS MVP
Author of the Word 2007 Bible
Blog:
http://word2007bible.herbtyson.com
Web:
http://www.herbtyson.com