Quantcast
Channel: Compare Suite » Articles
Viewing all articles
Browse latest Browse all 17

Ignore comments in source files

$
0
0

Compare Suite features a handful of additional functions that complement document comparison process and make this file comparison tool easy to use and multi-functional. CS is widely used in programming, app source code in particular. Programmers often use comments right in source codes, using special syntax, for instance /* or // to open comment, and */ or // to close it. Upon compilation of code these comments are ignored. However, when codes with comments are compared, CS may regard them as differences. To avoid this situation, comments in source codes may be ignored.

Despite differences in comments files are identified as identical

Despite differences in comments files are identified as identical

The latest version of Compare Suite makes it possible to ignore comments in source codes, such as Delphi, PHP, Java, C# and C++. This feature is enabled and disabled in Ignore section of Options menu. As said above, comments are not meaningful since they are not parts of codes. In some cases, it is reasonable to compare comments too, for example, to review versions of comparison files and source codes in detail. Thus, depending on requirements of comparison, users may either enable or disable comments ignoring feature in Compare Suite. In the majority of instances, comments are not meaningful. It is important to load files with correct extensions that are currently supported by Compare Suite (Delphi, PHP, Java, C# and C++).

Ignore comments in source files

Ignore comments in source files

As known, Compare Suite also can recognize source codes of some programming languages and highlight those parts of text which are recognized as programming language code, for instance, HTML, C#, PHP. It is convenient to compare parts of codes and “normal texts” inside codes. Comments ignoring feature for source codes makes CS an efficient tool both for code comparison and team work in software development. It is not a secret that the best way to find bugs and errors in new code versions is to contrast them against older app codes. This ignoring feature works only for source codes, not ordinary texts.

Share/Bookmark

Viewing all articles
Browse latest Browse all 17

Trending Articles