Since I've started working in DW CS6 I've noticed that the Find and Replace feature isn't working completely.
E.g. If I select a block of code, then open Find and Replace, tell it to find "<br />" and replace it with "</li>" it only replaces the first instance. The rest of the <br />'s are still <br />'s.
Is this happening to anyone else? I may have to switch back to CS5.
I don't know if this is related to your problem but OSX Lion has an update that is recommended for stability.
http://support.apple.com/kb/HT5167
You can file an Adobe bug report below:
https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
I can confirm. Windows 7 x64. Exactly the same -- select a block of text, choose 'find in selected text', choose 'replace all', and only the 1st instance is replaced. I forgot about that when reporting several other serious FTP-related problems I've been having with DW CS6 (see separate post).
And here is one of the pages I was working on. I made a duplicate because I'm still working on the site.
http://eastcoastspas.com/NEWSITE/_hot-tubs/twilight_series_spas/for_ad obe.php
At line 26 there are 2 unordered lists. Previously they were just lines with char codes for bullets and <br /> tags. I tried to use Find and Replace to change all of the bullet codes to "<li>". I already did it manually, but if were to try to change all the <li> back to char codes, it would happen again.
I appear to be getting this same error/bug.
Win7 with Dreamweaver CS6.
When I select a bock of code and try to "find in: selected text" and then "replace all" only the first instance is replaced.
I hope this is fixed asap, as this feature is a valauble one that I use on a daily basis in my work!
Just adding fuel to the fire - same issue here - Win7 x64 + DW CS6.
John Stanowski wrote:
Since I've started working in DW CS6 I've noticed that the Find and Replace feature isn't working completely.
E.g. If I select a block of code, then open Find and Replace, tell it to find "<br />" and replace it with "</li>" it only replaces the first instance. The rest of the <br />'s are still <br />'s.
Is this happening to anyone else? I may have to switch back to CS5.
At the moment I'm copying and pasting things in and out of Notepad++ to combat this issue - hope Adobe sort it out soon!
Chiming in to say I'm experiencing this replace all error too - to an infuriating level.
It seems to work once in a document - then it doesn't work any subsequent times.
Also - the tab order of input boxes in the "find/replace" box has been screwed up. When my cursor is in the "find" box and I press tab (used to jump to the Replace box), now jumps to "Find in", and then through the checkbox options, and then down the buttons on the right side, and finally to the replace text input box.
(Running Mac 10.7.4, Dreamweaver CS6)
I can confirm this bug on two different Win7 machines (x86 and x64):
Original text:
<ol>
<li>The quick brown fox jumps over the lazy dog.</li>
<li>Who's afraid of the big bad fox?</li>
<li>Fox starts with W.</li>
<li>This lady is foxy.</li>
</ol>
Task: Replace all instances of "fox" with "wolf" on the the middle two list items by selecting the following text.
<li>Who's afraid of the big bad fox?</li>
<li>Fox starts with W.</li>
Output:
<ol>
<li>The quick brown fox jumps over the lazy dog.</li>
<li>Who's afraid of the big bad wolf?</li> <!-- Replaced -->
<li>Fox starts with W.</li> <!-- Not replaced -->
<li>This lady is foxy.</li>
</ol>
Expected:
<ol>
<li>The quick brown fox jumps over the lazy dog.</li>
<li>Who's afraid of the big bad wolf?</li>
<li>wolf starts with W.</li>
<li>This lady is foxy.</li>
</ol>
Doesn't work for both text and source code.
Is there a fix coming soon?
** ANSWER/Workaround
Was having the same problem after updating from DW CS5 to CS6. Change the selection in the 'Search:' dropdown from the default 'Source:' to 'Text' or 'Text (Advanced)' and you will get the desired result. I still do not undertand why 'Source' only changes the first occurence.
Message was edited by: bracdiver
bracdiver wrote:
** ANSWER/Workaround
But this doesn't work on code.
<p> </p>
<p> </p>
<p> </p>
<p> </p>
Select the code above, go to F&R
Find in: Selected text
Search: Text (or advanced Text)
Find: non-breaking spaces (the actual code)
Replace: some real text here...
Hit Replace All button. Nothing happens.
Nancy O.
bracdiver wrote:
** ANSWER/Workaround
Change the selection in the 'Search:' dropdown from the default 'Source:' to 'Text' or 'Text (Advanced)' and you will get the desired result.
bracdiver, your post may be useful in some examples, like the ones I posted above. However, this does not work in my intended example below (which is source code specific), where the actual source code needs to be replaced:
Sample
<p>These are true or false questions. Place your answer on the blank under each question.</p>
<ol>
<li>There are twelve in a baker's dozen</li>
<li>35% of people are going to school.</li>
<li>There are seven books in the Harry Potter series.</li>
<li>The longest running play is "Les Miserables"</li>
<li>There is no blank under this question. <i>Answer beside this question instead.</i></li>
</ol>
Using these options
Find in: Selected Text (first four list items)
Search: Source code:
Find: </li>
Replace: <br />___________________</li>
Options enabled: Match case
Desired output:
<p>These are true or false questions. Place your answer on the blank under each question.</p>
<ol>
<li>There are twelve in a baker's dozen<br />___________________</li>
<li>35% of people are going to school.<br />___________________</li>
<li>There are seven books in the Harry Potter series.<br />___________________</li>
<li>The longest running play is "Les Miserables"<br />___________________</li>
<li>There is no blank under this question. <i>Answer beside this question instead.</i></li>
</ol>
CS6 DW output:
<p>These are true or false questions. Place your answer on the blank under each question.</p>
<ol>
<li>There are twelve in a baker's dozen<br />___________________</li>
<li>35% of people are going to school.</li>
<li>There are seven books in the Harry Potter series.</li>
<li>The longest running play is "Les Miserables"</li>
<li>There is no blank under this question. <i>Answer beside this question instead.</i></li>
</ol>
Using your workaround (with 'Inside Tag' option set to li), this will not work as does not change any text at all.
I have reproduced this bug on 2 seperate Windows 7 SP1 (x64) machines. I downloaded the trial of CS6 because I'm interested in upgrading from my copy of CS4, or maybe even trying out the Creative Cloud. I love PHP code hinting (not available in CS4) but I can't see myself shelling out money for products that destroy productivity because basic functionality does not work.
Can I use CS5 or CS5.5 if I purchase a Creative Cloud membership or am I restricted to CS6? Also, is it possible this bug is just a bad build of Dreamweaver or something and maybe, maybe Adobe has available older CS6 builds than what is available as the trial download now? Better yet, if someone has a fix for this bug I would love that lol. I don't want to use a second editor like Notepad++ so that I can use Dreamweaver, if I'm doing that I may as well purchase a different product.
I included this is the bug report I filed, but I'll include this here for reference to other users like me who found this thread via a search engine:
Dreamweaver CS6 Trial (All available updates applied)
Windows 7 SP1 (x64) (Both Home Premium and Professional Editions, all available updates applied)
1. Create new document (I've tested PHP and CSS, I don't see why the problem wouldn't exist elsewhere.)
2. Switch to Code view
3. Delete everything already there
4. Type asdf on serveral lines
5. Select 2 (or more) of those lines
6. Go to Edit -> Find and Replace
7. Set the "Find in:" option to "Selected Text"
8. Set the "Search:" option to "Source Code" (if applicable)
9. Type "asdf" in the "Find:" box
10. Type "jkl;" in the "Replace:" box
11. Click "Replace All"
The expected result is that all instances of asdf you have highlighted are changed to your desired replace text. However, only the first time "asdf" appears will it be changed.
I'm having to exit CS6 and work in CS5.5 because of this. The bug is acknowledged by Adobe, but they haven't fixed it yet. Agree that it is an absolute productivity killer, because I use find/replace to make groups of almost identical code, and I do that a lot.
Come on Adobe, you can do the tough stuff - do the easy stuff too. We need this.
If you want this to get attention, file an official bug report.
https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
Nancy O.
North America
Europe, Middle East and Africa
Asia Pacific