<code> HTML element. This is different from the CodeBlock extension, which creates block-level code sections.
Installation
Usage
Keyboard Shortcuts
Mod-e- Toggle inline code formatting
Markdown Support
The extension supports markdown syntax for inline code:- Type
`text`to create inline code
Configuration Options
HTML attributes to add to the code element.
Commands
setCode()
Set a code mark on the current selection.toggleCode()
Toggle the code mark on the current selection.unsetCode()
Remove the code mark from the current selection.Behavior Notes
- The code mark excludes all other marks (configured with
excludes: '_') - The code mark is exitable, meaning you can move the cursor out of it
- Other formatting marks cannot be applied inside inline code