C++ important comments and tab/space

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Patrick
    Journeyman
    • Jul 2008
    • 12

    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.
  • Aaron
    Team Scooter
    • Oct 2007
    • 16000

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

    Comment

    • Patrick
      Journeyman
      • Jul 2008
      • 12

      #3
      Thank you very much !

      Comment

      Working...