Adding Comments

A convenient way to disable a block of code is to put it into a comment.
Maple Editor allows you to quickly and easily comment and uncomment code by selecting a line or a block of text and tagging it as a comment. Comments can be added to single lines of code (Ctrl + /).

Commenting a Line

To comment a line:

  1. Place the cursor anywhere on the required line of code.
  2. Press Ctrl + /. A sharp symbol "#" will be added to the front of the line, causing it to be recognized as a comment.

Commenting More than One Line

To comment more than one line:

  1. Select all the lines that you would like to be commented.
  2. Press Ctrl + /. A sharp symbol "#" will be added to the front of each line, causing them to be recognized as a comment.

Uncommenting a line/lines

To uncomment a line/lines:

  1. Select the required line(s).
  2. Press Ctrl + /. The commenting formatting will be removed from the code.