Turning lines of code into comment lines

As in most languages, in EGL you can add comments in your code. EGL ignores any text that is commented.

You can comment a single line of code at once, or you can create a block of commented lines.
  • To comment a single line or a portion of a line, use two virgules or slashes (//):
    myInt int;  //This is an integer variable
    //The following function is for error checking
    function validateData (inputRecord myRecord inOut)
    end
  • To comment a block of lines, begin the comment with /* and end the comment with */:
    /*
    This function is commented.
    function myPlannedFunction()
    end
    */

To comment lines, you can type the comment characters yourself, or you can tell the EGL editor which lines to comment. Follow these steps to comment lines of code in the EGL editor:

  1. In the EGL editor, highlight one or more lines of code.
  2. Right-click the highlighted lines and then click Comment. Comment indicators (//) are placed at the beginning of each line in the selected range.

Use the same procedures to uncomment lines, but select Uncomment from the pop-up menu.