Skip to content

Commit

Permalink
tutor: add chapter for commenting lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Soc Virnyl S. Estela committed Dec 19, 2022
1 parent ba3c24a commit dc27350
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions runtime/tutor
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ _________________________________________________________________
2. Move to a place in the line which is missing text and type
i to enter Insert mode. Keys you type will now type text.
3. Enter the missing text.
4. Type Escape to exit Insert mode and return to Normal mode.
4. type Escape to exit Insert mode and return to Normal mode.
5. Repeat until the line matches the line below it.

--> Th stce misg so.
Expand Down Expand Up @@ -1055,16 +1055,56 @@ letters! that is not good grammar. you can fix this.


=================================================================
= =
= 11.1 COMMENTING A LINE =
=================================================================

Type Ctrl-c to comment the current line under your cursor.
To uncomment the line, press Ctrl-c again.

1. Move your cursor to the first line marked '-->' below.
2. Now comment the line marked with '-->'.
3. Now try uncommenting the line.

--> Comment me please uwu





=================================================================
= 11.1 COMMENTING MULTIPLE LINES =
=================================================================

Using the selections and multi-cursor functionality, you can
comment multiple lines as long as it is under the selection or
cursors.

1. Move your cursor to first line marked with '-->' below.
2. Now try to select or add more cursors the other lines marked
with '-->'.
3. Comment those lines.

--> How many are you going to comment?
--> Is this enough for a comment?
--> What are you doing?!
--> Stop commenting me!
--> AAAAaargh!!!

Note: If there are already commented lines under selections or
multiple cursors, they won't be uncommented but commented again.


=================================================================
= CHAPTER 11 RECAP =
=================================================================

* Use Ctrl-c to comment a line under your cursor. Type Ctrl-c
again to uncomment.
* To comment multiple lines, use the selections
and multi-cursors before typing Ctrl-c.
* Commented lines cannot be uncommented but commented again.





Expand Down

0 comments on commit dc27350

Please sign in to comment.