filmov
tv
Markdown Tips — Adding code samples with syntax highlighting using fenced code blocks

Показать описание
Fenced code blocks let you add nicely rendered code samples to your Markdown. These code samples can even support syntax highlighting.
To create a fenced code block, just surround your code in lines with three backticks.
To get syntax highlighting, you can also add a programming language identifier after the opening three backticks. This language identifier isn't standardized but there are some common names, such as 'js' for JavaScript. Make sure your Markdown renderer supports the programming language identifier you want to use.
#markdown
To create a fenced code block, just surround your code in lines with three backticks.
To get syntax highlighting, you can also add a programming language identifier after the opening three backticks. This language identifier isn't standardized but there are some common names, such as 'js' for JavaScript. Make sure your Markdown renderer supports the programming language identifier you want to use.
#markdown