Markdown
Code Blocks
Fenced, indented, and inline code.
By EZ4Code Team
codefencesyntax-highlighting
Code
Fenced code block:
```js
const x = 1;
function add(a, b) {
return a + b;
}
```
Indented code block (4 spaces):
const x = 1;
Inline code: `const x = 1`Explanation
Fenced blocks delimited by triple backticks support an optional language hint for syntax highlighting and are preferred over indented blocks. Indented blocks require four leading spaces and do not support language hints. Inline code uses single backticks and renders in a monospace font.