Commenting code in the text editor

The text editor allows you simply to comment and uncomment blocks of source code or test script. The same principle also applies to declaring native C code in a C test script by prefixing each with a dash (#) character.

To comment a block of source code

  1. In the text editor, select a block of code.

  2. Click the Comment (-- or // depending on the language) button in the toolbar.

To uncomment a block of commented source code

  1. In the text editor, select a block of commented code.

  2. Click the Uncomment (-- or // depending on the language) button in the toolbar.

To declare native code in a .ptu test script

  1. In the .ptu test script, select a block of native C code.

  2. Click the Native # button in the toolbar.

Related Topics

Editing code and test scripts | Text editor syntax coloring