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

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    7,581

    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

  3. #3
    Join Date
    Jul 2008
    Posts
    12

    Default

    Thank you very much !

Posting Permissions

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