Code Block in Markdown
Code refers to the code section in a document, which is generally a highlighted part in a special color as compared to the normal text. The appearance of code in any document is different to make it as a special section. Otherwise, it will be difficult for a user to differentiate between the text and the code.
The code in Markdown is represented using the three backtick symbols at the starting and the three backticks symbols at the end.
Note: The text should be inserted between the three backtick symbols, but not in the same line. Markdown ignore the text specified on the same line as that of symbols.
Other markdown commands does not work inside the code section. For example, highlight text, bold, italics, etc. The code is already highlighted in Markdown. Hence, a separate command to change the text format is not required.
Let's discuss two examples based on the code block.