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

Show my Conditions records

Opens into the Health app to the Conditions section of your Health Records where you can “connect to your providers to see your health records and get updates when there’s a new entry.”

Get Shortcut »

High alert

Sets the playback destination to the current device, turns off Do Not Disturb and Airplane Mode, turns on Cellular Data, Bluetooth, and Wi-Fi, sets the volume to 85%, the brightness to 100%, and turns on Light mode, then turns on every option for Sound Recognition, then vibrates if run from iPhone when it’s all done.

Get Shortcut »


Get way deeper into Shortcuts – become a member.