How to code block on the forums

Apr 27th, 2015
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # How to properly insert a code block
  3. 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.
  5. ```python
  6. def hello():
  7. print("Hello World!")
  9. # This is your Python code.
  10. # The word "python" after the three backticks indicates that this text
  11. # should receive Python syntax highlighting.
  12. # Syntax-highlighted code blocks are not standard Markdown - they are
  13. # however supported by GitHub and omz-forums.
  14. # To create code blocks without syntax highlighting, remove the "python"
  15. # after the three backticks.
  16. ```
  18. 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.
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.