No announcement yet.

php cpmpare

  • Filter
  • Time
  • Show
Clear All
new posts

  • php cpmpare

    New problem - comparing a php file

    some css at the beginning

    .price2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 25px;
    text-align: right;
    vertical-align: middle;
    letter-spacing: 1px;
    padding-right: 8px;

    exactly the same on both sides appart from this the last line
    padding-right: 10px; and padding-right: 8px;

    so why is the whole block marked red ? and not just the line !

    not surprisingly with that comparison my whole file is a mess of red !
    oh and its not correctly identifying the file type although on automatic
    seems to think everything is ANSI

    BC3 is driving me nuts - i keep trying it because i would like to use it, but just keep discovering new difficulties - suspect i really will stay using BC2 which is fantastic
    i'm not saying bc3 is not good but it seems to have become from my point of view to complicated and unusuable which is a shame
    Last edited by soup; 14-Apr-2009, 05:44 PM.

  • #2
    Hi soup,

    can you please post a screen-shot of the compare window?



    • #3


      • #4
        Hmmpf, this looks really strange

        I downloaded the extra PHP-Rule from Scooter homepage and imported it.
        Then I opened one PHP file in a file-viewer, copied the whole content to the right pane and modified some lines.
        But here the differences were correctly detected and displayed.

        Can you please try the following:
        When you have the two files loaded, try to change the file-format from PHP-Source to <Standard> (using the popup-menu next to the filesize display).

        Does this bring better results?



        • #5
          When something like this occurs it's generally because of an unterminated string literal or comment. It's actually usually because our grammar isn't complete and thinks you have an unterminated string, but the effect is the same.

          The block of differences in your comparison starts a bit higher than what's visible in your screenshot. Look where that big block of red actually starts; the problem should be within one line or two lines of the start of it. If you can't figure out what's going on, please send us copies of the files and your Help->Support export. We'll keep anything you send us strictly confidential.
          Zoë P Scooter Software


          • #6
            it doesn't like two style definitions is the problem

            <style type="text/css">

            see screen shot - its trying to be too clever :-)

            bc2 doesn't try to be so just shows you the differences
            Last edited by soup; 16-Apr-2009, 06:43 PM. Reason: screenshot was missing


            • #7
              If you intended to attach a different screen shot, I'm not sure that it worked. To me, this one looks exactly like the one you attached in your earlier post above...
              BC v4.0.7 build 19761


              • #8
                damm your right, sorry kept coming up against the 98kb limit

                anyway try this one !



                • #9
                  Originally posted by chrroe View Post
                  When you have the two files loaded, try to change the file-format from PHP-Source to <Standard> (using the popup-menu next to the filesize display).
                  Have you tried this for diagnostic purposes, yet?


                  • #10
                    i presume you mean <default> :-)

                    ok tried that and it works - i actually just get shown the differences.
                    Now how can i set that a stadard for my files ?


                    • #11
                      Looking at this screenshot, I think I see the problem.

                      On the right side, you close a comment with -->, but I do not see it closed on the left side; so if you started a comment on that side, then the whole section is considered a Comment.

                      You currently have Ignore Unimportant Differences on; If you turn that off, you should see the --> turn blue to show it is a difference, but you probably have Comments as Unimportant Differences in your Session Settings.

                      Is there a beginning Comment <!-- on the left side, but no End Comment --> ?
                      Aaron P Scooter Software


                      • #12
                        In other words, comments on one side and "important" code on the other equates to an important difference (even if the text is exactly the same).
                        BC v4.0.7 build 19761


                        • #13
                          To rephrase: This is similar to how BC2 treated Strings.

                          "This is not equal" <-> This is not equal

                          Would be determined as a difference since on one side it is a String, and on the other side it is just text. In BC3, we have user defined grammar elements beyond Strings, so the situation can be encountered in more ways.

                          If we did not end at end of line and had

                          This is no equal <-> This is not equal

                          Note that the left side could still be a string, if we allowed multi-line strings to be defined, and hence, would still be not equal. This is probably what is happening with your comment.
                          Aaron P Scooter Software