Results 1 to 5 of 5
  1. #1
    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?

  2. #2
    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

  3. #3
    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
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

  4. #4
    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

  5. #5
    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
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •