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

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

More From This Folder

Extra Details

Link to Run Shortcut
shortcuts://run-shortcut?name=Wrap%20text%20as%20code%20block
Link to Open Shortcut
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 The Library

Check my order status

Review the current status of your recent Apple Store order. This shortcut works with the Apple Store app to see where your latest order is at — order placed, shipping, out for delivery, etc.

Get Shortcut »

Run a shortcut

Asks you to enter the name of a shortcut, then finds and runs that shortcut. Also uses scripting to check if more than one exists with that name and asks which to run.

Get Shortcut »


Get way deeper into Shortcuts – become a member.

Browse more