5 ms·
What is a "code fence"?
by marssaxman 10y ago
What is a "code fence"?
- Ajedi32 10y agoIt's an alternate way of annotating code blocks which doesn't require you to indent every line (because that can be tedious for longer code snippets), and allows you to explicitly specify the language to use for syntax highlighting. Example: ```javascript // JavaScript code here ``` It's used extensively on GitHub.
- marssaxman 10y agoThanks. I've seen that but hadn't connected the name to the syntax.