Wrap text as code block

Wraps the input in three backticks on either side (which displays as a "code block" in Markdown-supported applications).

Actions Used

shortcuts-action-icon-copy-to-clipboard.webp
Copy to Clipboard
Copies the result of the last action to the clipboard.
shortcuts-action-icon-text.webp
Text
Passes the specified text to the next action.

Extra Details

Run Shortcut deep link
shortcuts://run-shortcut?name=Wrap%20text%20as%20code%20block
Open Shortcut deep link
shortcuts://open-shortcut?name=Wrap%20text%20as%20code%20block
AppleScript code
tell application “Shortcuts Events” run shortcut “Wrap text as code block” end tell

More From This Folder

More From The Library

Open Audio/Visual preferences

Opens the Audio or Visual section of Accessibility settings where you can adjust Headphone Accomations, Background Sounds, Mono Audio, Power On and Off Sounds, Headphone Notifications, Balance, and LED Flash for Alerts.

Get Shortcut »

Book Mode

Opens the Books app, then prompts you to confirm setting orientation lock so the screen doesn’t rotate. When run from Mac, opens the app in fullscreen.

Get Shortcut »


Get way deeper into Shortcuts – become a member.