This lesson is still being designed and assembled (Pre-Alpha version)

Practice area

Overview

Teaching: 30 min
Exercises: 1 min
Questions
  • Try making various examples yourself

Objectives
  • Learn how to format different use cases


  1. 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

  2. Refer to a different episode

     [Formatting episode](../04-formatting/index.html)
    

    Produces:

    Formatting episode


  3. 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.


  4. 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
    

  5. 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