Paragraph mark

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
john30120
Posts: 2
Joined: Thu Nov 09, 2006 9:11 pm

Paragraph mark

Post by john30120 »

This has got to be obvious but I missed it.

In search and replace how do you search for tab, newline, new paragraph, etc.

It would be something like ^p in msword ?
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

For a paragraph, simply switch to multiline view, press Enter in the 'Search for' box, and put whatever you need in the 'Replace with' box.

For a tab, you have to have 'Convert tabs to spaces' turned off in preferences. Simply highlight a tab, then open the 'Search/Replace' dialog, and it will place a tab (well, a square character) in the 'Search for' box for you.
Alternatively, again go into Multiline mode and press CTRL & TAB. This will actually indent a couple of spaces, but will be a tab.
john30120
Posts: 2
Joined: Thu Nov 09, 2006 9:11 pm

Paragraph

Post by john30120 »

What I would like to do is convert
aaaa
zzzz

to

aaaa zzzz

So I went to multi-line and pressed <enter>
Then went to replace with and pressed <space>

It went to the paragraph mark OK, but it didn't replace the paragraph mark with a space but rather just added the space, so I ended up with:

aaaa
zzzz

Any ideas?
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

What version of what application are you using?
I've just done a Flash demo of this, but because the search/replace text boxes look empty, it looks like a waste of time.

If you enter the blank line in the 'search for' box, I presume its actually finding it ok? You may also need to change the origin to 'Entire scope' rather than just 'From cursor'.
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

john, I did the same test and it worked fine for me.

enter in the top box
space in the bottom
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

You can use multi-line search and replace. Enter the actual <enter> in the first box and space in the second box to replace line breaks with spaces.

You may also enable regular expressions and use \n, but it will work only for searching line breaks.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply