How can I split the two files but ignore the differences in the Perl / C / C ++ comments?

I would like to take diff from two source code files, but I do not want it to report differences in lines containing only a comment on a programming language. The types of comments that I would like to ignore are the following:

 // ... # ... /* ... */ 
+4
source share
2 answers

BeyondCompare has the ability to ignore these comments.

+5
source

See our Smart Differencer for tools that compare programming langauge files according to structure rather than lines of text. Thus, spaces (including linear ones if they are spaces in your language), including comments, are ignored.

These tools work by analyzing the source code to determine its structure.

There are SmartDifferencers for C and C ++. Not for Perl. Perl is hard to parse: -}

0
source

All Articles