How to code block on the forums
- # How to properly insert a code block
- This is your text before the code block. What you write here doesn't matter. If you want to you can even leave it out. It is important that if you put any text before the code block, there *must* be an empty line between the text and the code block start.
- def hello():
- print("Hello World!")
- # This is your Python code.
- # The word "python" after the three backticks indicates that this text
- # should receive Python syntax highlighting.
- # Syntax-highlighted code blocks are not standard Markdown - they are
- # however supported by GitHub and omz-forums.
- # To create code blocks without syntax highlighting, remove the "python"
- # after the three backticks.
- This is text after the code block. Again this is optional, but if there is any, there must be an empty line between the end of the code block and the next paragraph.