# Code The Code extensions enables you to use the `` HTML tag in the editor. If you paste in text with `` tags it will rendered accordingly. Type something with \`back-ticks around\` and it will magically transform to `inline code` while you type. ## Installation ```bash # with npm npm install @tiptap/extension-code # with Yarn yarn add @tiptap/extension-code ``` ## Settings | Option | Type | Default | Description | | -------------- | -------- | ------- | --------------------------------------------------------------------- | | HTMLAttributes | `Object` | `{}` | Custom HTML attributes that should be added to the rendered HTML tag. | ## Commands | Command | Parameters | Description | | ------- | ---------- | ------------------------- | | code | — | Mark text as inline code. | ## Keyboard shortcuts * `Alt` ` ## Source code [packages/extension-code/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-code/) ## Usage