Skip to content

Commit e591f90

Browse files
author
Soc Virnyl S. Estela
committed
tutor: add chapter for commenting lines
1 parent ba3c24a commit e591f90

File tree

1 file changed

+50
-2
lines changed

1 file changed

+50
-2
lines changed

runtime/tutor

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ letters! that is not good grammar. you can fix this.
10441044
* Use ` and Alt-` to set the case of selected letters to
10451045
upper and lower respectively.
10461046

1047-
* Type S to split selections on regex.
1047+
* Type s to split selections on regex.
10481048

10491049

10501050

@@ -1055,10 +1055,58 @@ letters! that is not good grammar. you can fix this.
10551055

10561056

10571057
=================================================================
1058-
= =
1058+
= 11.1 COMMENTING A LINE =
10591059
=================================================================
10601060

1061+
Type Ctrl-c to comment the line under your cursor.
1062+
To uncomment the line, press Ctrl-c again.
10611063

1064+
1. Move your cursor to the line marked '-->' below.
1065+
2. Now comment the line marked with '-->'.
1066+
3. Now try uncommenting the line.
1067+
1068+
--> Comment me please
1069+
1070+
1071+
1072+
1073+
1074+
1075+
1076+
1077+
1078+
1079+
=================================================================
1080+
= 11.2 COMMENTING MULTIPLE LINES =
1081+
=================================================================
1082+
1083+
Using the selections and multi-cursor functionality, you can
1084+
comment multiple lines as long as it is under the selection or
1085+
cursors.
1086+
1087+
1. Move your cursor to the line marked with '-->' below.
1088+
2. Now try to select or add more cursors the other lines marked
1089+
with '-->'.
1090+
3. Comment those lines.
1091+
1092+
--> How many are you going to comment?
1093+
--> Is this enough for a comment?
1094+
--> What are you doing?!
1095+
--> Stop commenting me!
1096+
--> AAAAaargh!!!
1097+
1098+
Note: If there are already commented lines under selections or
1099+
multiple cursors, they won't be uncommented but commented again.
1100+
1101+
=================================================================
1102+
= CHAPTER 11 RECAP =
1103+
=================================================================
1104+
1105+
* Use Ctrl-c to comment a line under your cursor. Type Ctrl-c
1106+
again to uncomment.
1107+
* To comment multiple lines, use the selections
1108+
and multi-cursors before typing Ctrl-c.
1109+
* Commented lines cannot be uncommented but commented again.
10621110

10631111

10641112

0 commit comments

Comments
 (0)