In this article, we would like to show you how to create code lines in markdown.
Below examples present how to create:
- Inline code
- Code blocks with highlighting
1. Creating inline code
To create inline code in markdown you need to wrap your code into backticks
`var result = 1`
2. Code blocks with highlighting
To create a code block with highlighting you need to wrap your code with three backticks (
```) and specify the programming language in the first line.
Result from github.com:
Result from dev.to:
Result from stackoverflow.com: