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
Watch video Markdown Tips — Adding code samples with syntax highlighting using fenced code blocks online, duration hours minute second in high quality that is uploaded to the channel Code 2020 05 January 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 745 times and liked it 8 visitors.