Go Back   Scooter Forums > Beyond Compare 3 Discussion > Scripting
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 31-Aug-2010, 01:25 PM
SAbboushi SAbboushi is offline
Visitor
 
Join Date: Jun 2006
Posts: 6
Default How have whitespace treated as important?

I have checked all options on the default Session Settings, Importance tab. When I compare via the UI, tabs (i.e. tab characters) are highlighted when they are a difference.

When I do the compare via a script, I cannot figure out how to get the tabs to highlight when they are a difference.

Would be grateful for any help!

Thanks-
Sam
Reply With Quote
  #2  
Old 31-Aug-2010, 03:53 PM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 5,416
Default

Hello,

If you setup the interactive session to show your files as you expect, you can save that as a session and load the session in script. Otherwise, you will need to set your defaults to use the same options, so that when the script loads and uses the defaults it will present the information as you expect. This includes Session Settings and Toolbar toggled buttons.
__________________
Aaron P Scooter Software
Reply With Quote
  #3  
Old 31-Aug-2010, 06:14 PM
SAbboushi SAbboushi is offline
Visitor
 
Join Date: Jun 2006
Posts: 6
Default

Thank Aaron - I tried using "load <default>", but that did not make a difference.

If I right click on the 2 files and compare them, the tab character is highlighted in red (which I suggest proves that the default session setting is configured to display tabs as important).

Further examination leads me to the following conclusion:
The session settings Importance Tab regarding "embedded white space is important" results in the offending tab character being highlighted in the Interactive Session at the bottom where the current line from each file is displayed.

However, I am unable to get the tab to highlight when I then run a Text Compare Report using the Interactive Session - in which case, I would not expect it to display via script either.

So my question is: am I doing something wrong, or is there a way to highlight the tab character in a Text Compare Report?

I have attached 2 sample files, a screen shot showing the highlighted tabs, and the resulting Report generated via interactive session.
Attached Images
File Type: jpg Capture.JPG (63.4 KB, 4 views)
Attached Files
File Type: txt sample_tab_1.txt (5 Bytes, 2 views)
File Type: txt sample_tab_2.txt (2 Bytes, 1 views)
File Type: txt BC35203.htm.txt (3.0 KB, 3 views)
Reply With Quote
  #4  
Old 01-Sep-2010, 08:33 PM
SAbboushi SAbboushi is offline
Visitor
 
Join Date: Jun 2006
Posts: 6
Default

Anyone...?
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 12:20 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.