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
On this page of the site you can watch the video online Markdown Tips — Adding code samples with syntax highlighting using fenced code blocks with a duration of hours minute second in good quality, which was uploaded by the user Code 2020 05 January 2024, share the link with friends and acquaintances, this video has already been watched 2,470 times on youtube and it was liked by 25 viewers. Enjoy your viewing!