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

Open a folder

Prompts you to type in a folder name, then opens that folder in Shortcuts. Assigned to Shift + Control + O as a keyboard shortcut on macOS, and placed in the iPad dock.

Get Shortcut »


Get way deeper into Shortcuts – become a member.

Browse more