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

Pubblicato il: 05 gennaio 2024
sul canale di: Code 2020
2,470
25

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


In questa pagina del sito puoi guardare il video online Markdown Tips — Adding code samples with syntax highlighting using fenced code blocks della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Code 2020 05 gennaio 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,470 volte e gli è piaciuto 25 spettatori. Buona visione!