2.3.1 How it works
A comment is a note for the people reading the program. It starts with two slashes, //, and ends where the line ends. It can take a whole line or go at the end of an instruction.
Two program lines. In the first, what follows the two slashes is shaded and labelled comment. In the second, the two slashes are inside a quoted text and are labelled ordinary text.
ProgramComments in their place
Algorithm Comentarios
// Calcula el área de un rectángulo
Define base As Integer <- 4;
Define altura As Integer <- 3;
Write base * altura; // 4 por 3
Write "// esto no es un comentario";
EndAlgorithmOutput
12 // esto no es un comentario
The program finishes normally.
The engine does not run comments, but it does not throw them away either: it keeps them so that the editor, the formatter and the profile translator leave them intact.
In short
//opens a comment up to the end of the line.- Inside a quoted text,
//is ordinary text. - Comments are kept when formatting and translating.