Practice area
Overview
Teaching: 30 min
Exercises: 1 minQuestions
Try making various examples yourself
Objectives
Learn how to format different use cases
-
Make a Note
> ## Note check out the Markdown CheatSheet for standard syntax > check out the Markdown CheatSheet for standard syntax > [Cheat Sheet for Markdown](https://www.markdownguide.org/cheat-sheet/) {: .callout}
Produces:
Note check out the Markdown CheatSheet for standard syntax
check out the Markdown CheatSheet for standard syntax Cheat Sheet for Markdown
These tutorials use some addons. See Formatting episode for details.
I have to indent the text within a particular numbered section or the number resets
-
Refer to a different episode
[Formatting episode](../04-formatting/index.html)
Produces:
-
Show me some source code
for thing in collection: do_something
or you can use specific language specifiers like
{: .language-python}
Please write code so that people can copy directly over to their terminal to run it. No terminal prompts at the beginning of lines.
-
Ask me a tricky question
> ## Challenge Title > > What happens if I type? > > ~~~ > rm -rf * > ~~~ > {: .source} > > > ## Solution > > > > This is a bad thing to do > > > > ~~~ > > You have deleted all your files > > ~~~ > > {: .output} > {: .solution} {: .challenge}
Produces:
Challenge Title
What happens if I type
rm -rf *
Solution
This is a bad thing to do
You have deleted all your files
-
Make certain you can version things so the lesson is easy to keep up to date.
export CODE_VERSION=v20
Allows you to do
setup $CODE_VERSION
throughout your lesson.
(Visual code and other editors also allow you to do global changes if you have to. )
Key Points
Using Markdown to make note/warnings/quizzes