Appearance
PopClip Extensions Directory / Markdown / Code
Code
Convert to Markdown inline code or code block.
Readme
Code
Turn selected text into Markdown inline code or a code block. This extension "toggles," so if the selection already contains code syntax (inline code or fenced code block) the syntax is removed.
Detects whether there are multiple lines:
- if not, it surrounds the input with single backticks
- if so, it wraps the block in triple backticks (fenced)
When creating an inline code block, it will also detect whitespace at the beginning and end of the selection and make sure that it's excluded from the surrounding backticks.
Info
- Created
Aug 17, 2026 - Version
2.0.6 - Identifier
com.brettterpstra.popclip.extension.code - PopClip Version
≥2026.7.1 - Action Type
JavaScript - License
MIT License - Maintainer
Brett Terpstra - Source
ttscoff/popclipextensions/.../Code.popclipext/