Comment |
Description |
Example |
---|---|---|
Single-line |
There are two ways of marking:
In CODESYS, these comments are handled the same way. However, if library documentation is created using the LibDoc Scripting Collection, the following applies:
|
|
Multiline |
Starts with |
|
Nested |
Starts with |
|
Comments for tooltips and POU documentation
A tooltip in the header of a POU is defined by the following comment: // tooltip text – line 1 // tooltip text – line 2 // tooltip text – line 3 Afterwards the documentation is defined as follows: /// reStructuredText
Note: It is not recommended to mix the different comment types because this can cause unwanted side-effects when the documentation is generated.