Go Back   Scooter Forums > Beyond Compare 3 Discussion > Text Compare (2-way)
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 21-Oct-2008, 05:13 AM
JoeFinn JoeFinn is offline
New User
 
Join Date: Oct 2008
Posts: 1
Default Ignore whitespace

Hi,

I'm having trouble ignoring all whitespace differences between two files.

- language is c
- I want to ignore ALL whitespace differences both in comments and code
* before, after and between

How or can this be done?
Reply With Quote
  #2  
Old 25-Nov-2008, 03:15 AM
bc3_user bc3_user is offline
Visitor
 
Join Date: Nov 2008
Posts: 8
Default

Hi,

use the following settings:

enable checkbox Tools-->FileFormats->C/C++

View-->Ignore unimportant Differences

This should work for u.

Michael
Reply With Quote
  #3  
Old 25-Nov-2008, 06:35 AM
Michael Bulgrien Michael Bulgrien is offline
Carpal Tunnel
 
Join Date: Oct 2007
Location: Pennsylvania
Posts: 1,768
Default

Whitespace should be unimportant by default in the C file format.
Toggle the Ingnore Differences button [] on the toolbar to hide unimportant differences in your compare.
__________________
BC v3.3.8 build 16340
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Reply With Quote
  #4  
Old 25-Nov-2008, 06:45 AM
bc3_user bc3_user is offline
Visitor
 
Join Date: Nov 2008
Posts: 8
Default

This is why I've written that C files (rule ?) should be checked. BC3 has to be told that the extension *.C should be handled via *.C rule.

Ingnore Differences button [≈], has the same effect as View-->Ignore unimportant Differences

Michael
Reply With Quote
  #5  
Old 25-Nov-2008, 12:18 PM
Michael Bulgrien Michael Bulgrien is offline
Carpal Tunnel
 
Join Date: Oct 2007
Location: Pennsylvania
Posts: 1,768
Default

Michael - Yes, I am aware I said the same thing in a different way. I wasn't refuting your post... I was answering the original post in my own way.

Joe - If your files have different file extentions than the ones defined in the BC3 format for C files (for example, C code saved in txt files) you can make sure that the View \ File Info bar is enabled, then override the default file format that BC3 detected when the comparison was opened. The File Info bar sits right under MRU droplist on each side of the compare. The File Info bar has a File Format droplist. Simply drop the list and select "C,C++,C# Source" from the droplist on both sides.
__________________
BC v3.3.8 build 16340
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
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 02:07 PM.


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