“Comment” is one of the patterns that you can select on the Match panel. With this pattern you can match a comment as it would appear in the source code in one of many popular programming languages.
![]()
Kind of comment that the pattern should match. Select “custom” if you want to specify the characters that start and end comments. Select a programming language to match a string literal as it can appear in source code using that programming language.
If your programming language does not use the comment style of one of the programming languages supported by this pattern then you can specify a custom comment style. There are many different options in order to support nearly every conceivable comment style.
The character(s) that start(s) a comment that runs until the end of the line.
The delimiter that begins a comment that runs until the closing delimiter, possibly spanning across multiple lines.
Comments cannot be nested. The comment ends at the first occurrence of the closing delimiter.
The delimiter that ends a multi-line comment. If the opening and closing delimiters for multi-line comments are the same then you need to specify that delimiter twice. If there is no delimiter to end the comment then you should specify the opening delimiter in the single-line comment box instead.
You can specify a pair of opening and closing delimiters for multi-line comments and characters that start a single-line comment at the same time. That allows the field to match either style of comment.