Skip to main content

Selected Text

Inserts the selected text.

iOS Compatibility

On iOS, it's not always reliable to get the selected text.

When you expand snippets using Snippety Keyboard, the selected text is used by default. However, in keyboard settings, you can enable the option to use the Clipboard content instead to ensure more reliable behavior.

When you expand snippets in the Snippety app, the Clipboard content is used instead.

Parameters

None

Syntax

{@selection-content@}

Use Cases

This placeholder is useful when you want to insert the selected text into your template. It might be useful when you want to wrap the selected text with some additional content.

Example 1

You want to select a link and wrap it with a Markdown hyperlink:

[Read more]({@selection-content@})

Example 2

You want to select a text and wrap it with a HTML tag:

<p style="color: red;">{@selection-content@}</p>