I have a snippet which the selected text needs to be replaced twice.
Let’s say the selected text is HELLO.
The snippet tiddlers below will create:
<$button actions="<<my-macro 'HELLO'>>"> button-text </$button>
^^^^^
What would like to have is :
<$button actions="<<my-macro 'HELLO'>>"> HELLO </$button>
^^^^^ ^^^^^
Is there an easy way of doing this?
title: $:/language/Snippets/my-button
tags: $:/tags/TextEditor/Snippet
caption: My button
+======+
title: $:/language/Snippets/my-button/prefix
<$button actions="<<my-macro '
+======+
title: $:/language/Snippets/my-button/suffix
'>>"> button-text </$button>
+======+