Wrap text as code block

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

Scripting 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.

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 This Folder

More From The Library

Set background sounds

Presents a menu of the six options for Background Sounds available in Accessibility—balanced noise, bright noise, dark noise, ocean, ra, and stream sounds—then activates the choice, turns on the sounds, sets the volume to 20%, and also allows sounds during background media at 10%.

Get Shortcut »

Record as AIFF

Records normal quality audio, starting or stopping with your tap, then encoding the recorded audio to AIFF before saving to to a folder of your choice.

Get Shortcut »


Get way deeper into Shortcuts – become a member.

Browse more