Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In order to send a markdown codeblock properly, you should do as shown in order:
- 1) \`\`\`
- - There should be three backticks.
- 2) \`\`\`\<language\>
- - After the three backticks, label the codeblock by its language (optional). If supported, the text will appear highlighted by the language syntax provided.
- - Example: \`\`\`js
- 3) \`\`\`js
- console.log("Hello World!");
- - 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.
- 4) \`\`\` (end)
- - End your codeblock by adding three backticks at the end. Do not type (end) at the end.
- Example:
- \`\`\`js
- for (let i = 0; i < 100; i++) { console.log(`All the wonderful numbers! ${i + 1}`); }
- \`\`\`
- Becomes:
- ```js
- for (let i = 0; i < 100; i++) { console.log(`All the wonderful numbers! ${i + 1}`); }
- ```
- ```py
- def fn():
- return fn
- ```
- 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.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement