Adobe Dreamweaver Forums



Last 10 THreads :         a group for eve players to discouss the interest (Last Post : evemaven - Replies : 0 - Views : 1 )           »          Trouble using variables to name and instantiateTextFields (Last Post : jc_2006 - Replies : 1 - Views : 2 )           »          Background color code is not working. Please help (Last Post : Tim G - Replies : 9 - Views : 10 )           »          error (Last Post : Tim G - Replies : 1 - Views : 2 )           »          DWCS4 Menus (Last Post : DouglasWD - Replies : 0 - Views : 1 )           »          Can't open more than one Macromedia product at a time (Last Post : ChandaBB - Replies : 7 - Views : 8 )           »          DWCS4 Fade/Appear image load question (Last Post : DouglasWD - Replies : 0 - Views : 1 )           »          NetStream progressive FLV download current frame (Last Post : AsafH - Replies : 0 - Views : 1 )           »          Creating Newsletters (Last Post : Yovav - Replies : 2 - Views : 10 )           »          CS4 Div Tags Help Needed (Last Post : Ian Edwards - Replies : 4 - Views : 5 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver General
 
Tags: , , , , , ,



Reply
  #1 (permalink)  
Old 08-08-2008, 03:45 AM
Clancy
 
Posts: n/a
Diggs:
Default Beyond Compare: "Files don't match", but no visible differences?

I am messing around with a text file editor, running under PHP, and have made
some minor change which has upset the editor. I trying to find what is wrong,
and have just compared two versions of an edited file in Beyond Compare.

It has told me "files don't match", but if I select "show all" it shows two
identical screens. If I select either "just differences", or "differences with
context", I get two blank screens. I suspect there is probably an extra space
on the end of a line, or a hidden character somewhere, but is there any way to
get it to tell me just what the perceived difference is?

Clancy


Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-08-2008, 05:49 PM
David Powers
 
Posts: n/a
Diggs:
Default Re: Beyond Compare: "Files don't match", but no visible differences?

Clancy wrote:
> I am messing around with a text file editor, running under PHP, and have made
> some minor change which has upset the editor. I trying to find what is wrong,
> and have just compared two versions of an edited file in Beyond Compare.
>
> It has told me "files don't match", but if I select "show all" it shows two
> identical screens.


In Beyond Compare, go to Tools > Options > Startup. Set "Show dialog
with quick comparison results" to "Rules-based quick compare".

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Reply With Quote
  #3 (permalink)  
Old 08-09-2008, 01:20 AM
Clancy
 
Posts: n/a
Diggs:
Default Re: Beyond Compare: "Files don't match", but no visible differences?

David Powers <david@example.com> wrote:

>In Beyond Compare, go to Tools > Options > Startup. Set "Show dialog
>with quick comparison results" to "Rules-based quick compare".


Thanks, David.

Now the files match. So the alleged mismatch was due to some glitch in the
quick comparison procedure?


Clancy
Reply With Quote


  #4 (permalink)  
Old 08-09-2008, 05:31 PM
David Powers
 
Posts: n/a
Diggs:
Default Re: Beyond Compare: "Files don't match", but no visible differences?

Clancy wrote:
> Now the files match. So the alleged mismatch was due to some glitch in the
> quick comparison procedure?


The default quick comparison is a binary comparison. Rules-based is more
accurate.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Reply With Quote
  #5 (permalink)  
Old 08-12-2008, 02:43 AM
Clancy
 
Posts: n/a
Diggs:
Default Re: Beyond Compare: "Files don't match", but no visible differences?

David Powers <david@example.com> wrote:

>Clancy wrote:
>> Now the files match. So the alleged mismatch was due to some glitch in the
>> quick comparison procedure?

>
>The default quick comparison is a binary comparison. Rules-based is more
>accurate.


?? Apart from the quickest, surely binary comparison is the the only truly
accurate way to do it. I can only guess that the rule-based comparison takes
account of the fact that while almost any difference may be significant in text
files, if you are comparing high-level language files some differences will not
be significant, depending on the particular language used.

For example in PHP the following two scraps of code are functionally equivalent.
------------
<p>&nbsp;</p>
<p>Test factorials. Try 1.</p><h5>&nbsp;</h5>
<?php
$i = 1;
$j = 7;
$fact[0] = 1;
while ($i < $j)
{
$fact[$i] = $fact[$i-1]*$i;
echo '<p>Factorial('.$i.') = '.$fact[$i++].'</p>';
}
?>
-------------
<?php echo '<p>&nbsp;</p><p>Test factorials. Try 2.</p><h5>&nbsp;</h5>';
$i=1;$j=7;$fact[0]=1;
while($i<$j){$fact[$i]=$fact[$i-1]*$i;echo'<p>Factorial('.$i.') =
'.$fact[$i++].'</p>';} ?>


I notice that Beyond Compare does not have a rule for PHP, perhaps because PHP
files are usually a random mixture of PHP, HTML, and text.


Clancy
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 11:23 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk