Skip to content

Commit 873d909

Browse files
committed
06-style-guide.md: add code block types
1 parent a698522 commit 873d909

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

_episodes/06-style-guide.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ We use emphasis
2323
~~~
2424
We want to output the lines that do not contain the word *the*.
2525
~~~
26+
{: .source}
2627

2728
This is preferable instead of the use of quotation marks.
2829

2930
See the "Keyboard Key" section for characters or keyboard keys that the learn should type.
30-
31+
3132
- for words and phrases that are still regarded as unfamiliar.
3233
- for titles of books, periodicals, plays, films, TV, radio series, and music albums.
3334

@@ -36,6 +37,7 @@ We use emphasis
3637
~~~
3738
We will use a file that contains three haikus taken from a 1998 competition in *Salon* magazine.
3839
~~~
40+
{: .source}
3941

4042
## Strong Emphasis
4143

@@ -49,6 +51,7 @@ We use strong emphasis
4951
~~~
5052
We are all familiar with **graphical user interfaces**
5153
~~~
54+
{: .source}
5255

5356
## Span of Code
5457

@@ -62,34 +65,39 @@ We use span of code
6265
~~~
6366
For example, `range(3, 10, 2)` produces
6467
~~~
68+
{: .source}
6569
- to highlight one command where it is itself the object of discussion.
6670

6771
For example,
6872

6973
~~~
7074
you can run it by opening a terminal and typing `bash`.
7175
~~~
76+
{: .source}
7277

7378
When the object of discussion is the program or language in a broad sense,
7479
we don't use span of code. For example,
7580

7681
~~~
7782
The most popular Unix shell is Bash.
7883
~~~
84+
{: .source}
7985
- to highlight one function where it is itself the object of discussion.
8086

8187
For example,
8288

8389
~~~
8490
`len` is much faster than any function we could write ourselves.
8591
~~~
92+
{: .source}
8693
- to highlight one file name where it is itself the object of discussion.
8794

8895
For example,
8996

9097
~~~
9198
`my_file.txt` can also be viewed in your GUI file explorer.
9299
~~~
100+
{: .source}
93101
- to highlight any sequence of character that the user is expected to type.
94102

95103
## Keyboard Key

0 commit comments

Comments
 (0)