Skip to content

Commit a637461

Browse files
author
Soc Virnyl S. Estela
authored
tutor: add chapter for commenting lines (#5211)
1 parent 1af76b7 commit a637461

File tree

1 file changed

+49
-1
lines changed

1 file changed

+49
-1
lines changed

runtime/tutor

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,10 +1099,58 @@ letters! that is not good grammar. you can fix this.
10991099

11001100

11011101
=================================================================
1102-
= =
1102+
= 11.1 COMMENTING A LINE =
11031103
=================================================================
11041104

1105+
Type Ctrl-c to comment the line under your cursor.
1106+
To uncomment the line, press Ctrl-c again.
11051107

1108+
1. Move your cursor to the line marked '-->' below.
1109+
2. Now comment the line marked with '-->'.
1110+
3. Now try uncommenting the line.
1111+
1112+
--> Comment me please
1113+
1114+
1115+
1116+
1117+
1118+
1119+
1120+
1121+
1122+
1123+
=================================================================
1124+
= 11.2 COMMENTING MULTIPLE LINES =
1125+
=================================================================
1126+
1127+
Using the selections and multi-cursor functionality, you can
1128+
comment multiple lines as long as it is under the selection or
1129+
cursors.
1130+
1131+
1. Move your cursor to the line marked with '-->' below.
1132+
2. Now try to select or add more cursors the other lines marked
1133+
with '-->'.
1134+
3. Comment those lines.
1135+
1136+
--> How many are you going to comment?
1137+
--> Is this enough for a comment?
1138+
--> What are you doing?!
1139+
--> Stop commenting me!
1140+
--> AAAAaargh!!!
1141+
1142+
Note: If there are already commented lines under selections or
1143+
multiple cursors, they won't be uncommented but commented again.
1144+
1145+
=================================================================
1146+
= CHAPTER 11 RECAP =
1147+
=================================================================
1148+
1149+
* Use Ctrl-c to comment a line under your cursor. Type Ctrl-c
1150+
again to uncomment.
1151+
* To comment multiple lines, use the selections
1152+
and multi-cursors before typing Ctrl-c.
1153+
* Commented lines cannot be uncommented but commented again.
11061154

11071155

11081156

0 commit comments

Comments
 (0)