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

Enable listening history

Asks you to pick a focus mode, then sets the Music Focus Filter for “Use Listening History”” to ON so anything you listen to will be tracked and added to Apple Music Replay.

Get Shortcut »

Scrape session titles

For a given list of Apple Developer session URLs, this will iterate through each, grabbing the name of the webpage, cleaning it up, and reformatting it into a Markdown list before copying that to your clipboard.

Get Shortcut »


Get way deeper into Shortcuts – become a member.

Browse more