Announcement

Collapse
No announcement yet.

Line Weight

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Line Weight

    I have the following text on the left hand side:

    Code:
    METHOD EnableControls() AS VOID PASCAL CLASS HNDialogWindowTendering
    
    	SELF:EnableButtons()
    	
    	SELF:FocusedObject := NULL_OBJECT
    	
    	SELF:lProcessing := FALSE
    
    	RETURN
    METHOD GetAmountTendered() AS FLOAT PASCAL CLASS HNDialogWindowTendering
    
    	RETURN Val(SELF:oDCAmountTendered:TextValue)
    The corresponding text on the right hand side is:

    Code:
    METHOD GetAmountTendered() CLASS HNDialogWindowTendering
    
    	LOCAL nAmount	AS FLOAT
    
    	nAmount := Val(SELF:oDCAmountTendered:TextValue)
    
    	RETURN nAmount
    I'm trying to get BC2 to weight based on the METHOD lines. It is currently aligning:
    • METHOD EnableControls() AS VOID PASCAL CLASS HNDialogWindowTendering
    • METHOD GetAmountTendered() CLASS HNDialogWindowTendering


    I want to align the following:
    • METHOD GetAmountTendered() AS FLOAT PASCAL CLASS HNDialogWindowTendering
    • METHOD GetAmountTendered() CLASS HNDialogWindowTendering


    I've tried adding the following regular expression under the line weight options to get the alignment working, but it doesn't seem to help. I have tried the weight setting as 5000 and 10000.

    ^\s*METHOD\s+[a-zA-Z0-9_]+\(

    Is there something I am missing?
    Can I get Beyond Compare to recognize that the identifier after the METHOD keyword is important and that it should try to match them? (i.e. increase the weight on this).

  • #2
    Hello,

    The Line Weight option is helpful but only nudges the alignment slightly. Instead, you would need to modify the Rules, Alignment tab. You can switch between Standard or Alternate methods and change the Skew or Similar options to help get better results for these files.

    BC4 also adds a Patience Diff algorithm, and other tweaks which might help. You could install the trial (without removing or altering BC2) and give it a try before any purchase would be necessary.
    http://www.scootersoftware.com/download.php
    and we have some helpful tutorial videos here:
    http://www.scootersoftware.com/features.php?zz=v4videos
    I would recommend the "Older Videos" which were centered on BC2 to BC3 transitions, while BC3's interface is similar to BC4 so they are still quite helpful.
    Aaron P Scooter Software

    Comment

    Working...
    X