Go Back   Scooter Forums > Beyond Compare 3 Discussion > File Formats vs. Rules
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 26-Apr-2012, 06:16 AM
Patrick Patrick is offline
Journeyman
 
Join Date: Jul 2008
Posts: 12
Default C++ important comments and tab/space

Hello,

While comparing 2 c++ files, I'd like the comments to be considered as important, but i would also like a space or a tab inside a comment to be considered as non-important.
Basicaly, i'd like BC to behave the same way for the code and for the comments.
Reply With Quote
  #2  
Old 26-Apr-2012, 08:56 AM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 6,789
Default

Hello,

To perform this comparison, you would need to edit (or create a new/clone) file format without the "Comments" grammar. To create a clone, go to the Tools menu -> File Formats, select your C++ file format and Save As. You can uncheck the original to disable it. Then go to the Grammar tab and delete any "Comment" grammars to revert them to 'Everything Else' text, which can mark the text as important but the whitespace as unimportant.

Adding the option to have grammars optionally treat whitespace at a different level of importance is on our Customer Wishlist.
__________________
Aaron P Scooter Software
Reply With Quote
  #3  
Old 26-Apr-2012, 09:47 AM
Patrick Patrick is offline
Journeyman
 
Join Date: Jul 2008
Posts: 12
Default

Thank you very much !
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 10:12 PM.


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