# Code Displays inline code or a code block. The content is escaped, so markup is shown literally. ![Code examples](https://book.lewe.com/bootstrap-visuals/assets/component-code.png "Code examples") ## Examples ```text wrap Use [bsv-code]add_action()[/bsv-code] to register a hook. ``` ```text wrap [bsv-code block="yes" scrollable="yes"]line one line two line three[/bsv-code] ``` ## Format ``` [bsv-code parameter="value" ...]your code here[/bsv-code] ``` ## Parameters | Parameter | Description | Default | | --- | --- | --- | | `block` | Render a `
` block instead of inline ``. | `no` |
| `scrollable` | Add the scrollable class to a block. Only applies when `block="yes"`. | `no` |

Line breaks in block content are preserved. Content is escaped with
`esc_html()`; do not use it for HTML that should be rendered.