diff --git a/editions/tw5.com/tiddlers/howtos/Using Stamp.tid b/editions/tw5.com/tiddlers/howtos/Using Stamp.tid index dc9cebfe4..5ffa5da3b 100644 --- a/editions/tw5.com/tiddlers/howtos/Using Stamp.tid +++ b/editions/tw5.com/tiddlers/howtos/Using Stamp.tid @@ -1,27 +1,59 @@ created: 20160618090057124 -modified: 20190704054958185 +modified: 20230101114932775 tags: [[Editor toolbar]] title: Using Stamp type: text/vnd.tiddlywiki -! Insert snippets -You can insert preconfigured snippets of text to use stamp from toolbar. Click ''stamp'' (<<.icon $:/core/images/stamp>>) and just select a snippet. +Snippets are pre-configured snippets of text which can be inserted into the editor by clicking the ''stamp'' (<<.icon $:/core/images/stamp>>) button on the [[toolbar|Editor toolbar]] and then on the required item. + +Snippets can either ''replace'', or be ''added before and/or after'', the selected text in the editor. ! Create a snippet -# Click ''stamp'' (<<.icon $:/core/images/stamp>>) -# Create a snippet tiddler through the "//Add your own//" menu entry -# Type some text as snippet for the tiddler, add a caption for the name as shown in the menu -# Click the <<.icon $:/core/images/done-button>> ''ok'' button +!! Whilst editing a tiddler -<$macrocall $name=".tip" _="""''Tip:'' You can also create a snippet tiddler using the ''new tiddler'' <<.icon $:/core/images/new-button>> button in the sidebar, and add tag ''~$:/tags/TextEditor/Snippet''""" /> +# Click ''stamp'' (<<.icon $:/core/images/stamp>>) on the toolbar +# Click "//Add your own//" at the bottom of the menu +# Type the text for the snippet in the editor +# Enter the caption for the snippet menu item in the `caption` field +# Click the <<.icon $:/core/images/done-button>> //Confirm changes to this tiddler// button -!!<<.from-version "5.1.20">> Adding a prefix and/or suffix to a selection +!! Manually -# Click ''stamp'' (<<.icon $:/core/images/stamp>>) -# Create a snippet tiddler through the "//Add your own//" menu entry -# Add a caption for the name as shown in the menu -# Create a tiddler with the same title but add the suffix `/prefix` -# Insert the prefix in its text field -# Create a tiddler with the same title but add the suffix `/suffix` -# Insert the suffix in its text field -# Click the <<.icon $:/core/images/done-button>> ''ok'' button +# Create a new tiddler by clicking the //Create a new tiddler// <<.icon $:/core/images/new-button>> button in the sidebar + +# Change the title for the tiddler (from e.g. `New Tiddler 1`). The tiddler title determines the menu item for the stamp if you do not set a `caption` field (see below).