SHARE
TWEET

Untitled

a guest Oct 9th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. In order to send a markdown codeblock properly, you should do as shown in order:
  2.  
  3. 1) \`\`\`
  4.    - There should be three backticks.
  5. 2) \`\`\`\<language\>
  6.    - After the three backticks, label the codeblock by its language (optional). If supported, the text will appear highlighted by the language syntax provided.
  7.    - Example: \`\`\`js
  8. 3) \`\`\`js
  9. console.log("Hello World!");
  10.    - Insert the code after adding a linebreak after the language you provide. Github does not show the line break after `js`, but it's required.
  11. 4) \`\`\` (end)
  12.    - End your codeblock by adding three backticks at the end. Do not type (end) at the end.
  13.  
  14. Example:
  15. \`\`\`js
  16. for (let i = 0; i < 100; i++) { console.log(`All the wonderful numbers! ${i + 1}`); }
  17. \`\`\`
  18. Becomes:
  19. ```js
  20. for (let i = 0; i < 100; i++) { console.log(`All the wonderful numbers! ${i + 1}`); }
  21. ```
  22.  
  23. ```py
  24. def fn():
  25.     return fn
  26. ```
  27.  
  28. NOTE: Codeblocks depend on how the service you're using formats it. For example: Discordapp allows the ending backticks to be on the same line as the code, while Github does not.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top