Comment Scheme Configuration

In this dialog window users are able to create or to modify a so–called Comment Scheme. Such a Comment Scheme generally consists of its Open tag as well as its Close tag. But note, because of the fact that comments can end at the end of line a Close tag can simply consists of a line feed. Further, under some circumstance it might be useful to preserve a whitespace behind the Open tag, for instance in case of Windows batch files, to filter comments in an appropriated way. All these comment properties can be adjusted within this dialog window. Now please see figure below to get a first impression of dialog box Comment Scheme Configuration.

Comment Scheme Configuration dialog of program Line Counter.

As shown in figure above, this dialog box provides an edit control to input a comment type’s Open tag as well as an edit control that allows defining this comment type’s Close tag. Further is shown a check–box that allows deciding whether whitespaces have to be preserved or not. Now please see following overview to get additional details about all dialog components.

Open In this edit control users can define the Open tag to be used with this comment scheme. Please keep in mind that all leading and following whitespaces are removed after confirming made changes by clicking button [OK].
Close In this edit control users can define the Close tag to be used with this comment scheme. Please keep in mind that all leading and following whitespaces are removed after confirming made changes by clicking button [OK]. Furthermore, this edit control is only enabled when check–box Comment ends at line end is not checked. Additionally note an input of EOL is also supported by this edit box. But in this case check–box Comment ends at line end is automatically checked as soon as the focus moves to another control.
Comment ends at line end This check–box easily allows deciding that this specific comment scheme ends at the end of line. Keep in mind, if this check–box is checked then the control Close is disabled.
Whitespace Required This check–box allows defining that whitespaces behind the Open tag should be preserved. This is especially important for letter based comment tags, such as REM which is used in Windows batch files. Preserving whitespaces helps in this case to distinguish between a comment and commands like remove.
Letter Check Last but not least, this control informs the user whether a case insensitive check takes place. This means the content of this control changes from Irrelevant to Ignore Case as soon as control Open contains at least one letter. Please note this control is for informational purpose only. User cannot influence the letter check behavior of program Line Counter.

See also:

Copyright © plexdata.de