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

Search Twitter

Presents a menu for various Twitter search operations, including jumping right into the search field, showing Twitter Moments, searching through all tweets, cutting down results to only people you follow, or even searching your own tweets.

With this one tool, you can take advantage of all the awesome options buried in Twitter search – it’s like Google for people you follow.

This uses a combination of donated actions from Twitter, the Search Web action native to Shortcuts, and deep links taken from the web.

Get Shortcut »

Watch See

In the far future, humankind has lost its sense of sight. Jason Momoa stars as the father of twins born with the mythic ability to see—who must protect his tribe against a threatened queen. Dave Bautista and Alfre Woodard also star.

Get Shortcut »


Get way deeper into Shortcuts – become a member.