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

Open Accessibility Shortcut preferences

Opens the deep link into Settings > Accessibility > Accessibility Shortcut to let you configure the Side Button to toggle accessibility feautres on or off.

Choose between Apple Watch Mirroring, AssistiveTouch, Background Sounds, Classic Invert, Color Filters, Control Nearby Devices, Detection Mode, Dim Flashing Lights, Increase Contrast, Left or Right Balance, Live Captions, Live Speech, Magnifier, Reduce Motion, Reduce Transparency, Voice Control, Reduce White Point, Smart Invert, Switch Control, VoiceOver, Zoom, Full Keyboard Access, and Speak Screen.

Get Shortcut »


Get way deeper into Shortcuts – become a member.