Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tutor: add chapter for commenting lines #5211

Merged
merged 1 commit into from
Dec 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 49 additions & 1 deletion runtime/tutor
Original file line number Diff line number Diff line change
Expand Up @@ -1055,10 +1055,58 @@ letters! that is not good grammar. you can fix this.


=================================================================
= =
= 11.1 COMMENTING A LINE =
uncomfyhalomacro marked this conversation as resolved.
Show resolved Hide resolved
=================================================================

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

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

--> Comment me please










=================================================================
= 11.2 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 the 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