Toolbar Preview
The Toolbar Preview lets you test out your snippets here directly without having to go to Tildes, with the only difference being that rendering the Markdown isn't possible here.
{/* The key attribute makes it so the mock re-renders on every update. */}Snippets
Usage Guide
Here you can create your own snippets and customize your toolbar, each snippet has a number of configurable values:
- Position, the number next to the snippet name determines in what order they will be placed in the toolbar. Snippets with the same position will be sorted alphabetically.
- Name, the name of the snippet to display in the toolbar.
- Enable, whether the snippet should be added to the toolbar.
- Display in the "More..." dropdown, with this enabled the snippet will be placed in the "More..." dropdown following the same sorting rules as normal.
- Snippet (Markdown), the snippet text itself in Markdown.
There are also a few markers that will do special things when used in a snippet:
-
The
<cursor>
marker indicates where the cursor should be positioned after inserting the snippet. If this marker isn't used the cursor will be placed at the end of the snippet. -
The
<selected-cursor>
marker is used for when you have text selected, placing the cursor at this location and inserting the selected text in the snippet at the{" "}<cursor>
position. There is currently{" "} {" "} when this marker is placed before the{" "}<cursor>
marker, causing the cursor position to be incorrectly placed after inserting the snippet.
To reload the toolbar after you've made changes click the Apply & Reload button. This will save all the snippets and recreate the toolbar with your changes. Any snippets with unsaved changes will have a yellow border and snippets that are going to be removed will have a red border.
To remove a snippet click the Remove button, this will remove it from storage but keep it loaded in the page. You can then click the Apply & Reload button to permanently remove it or click the Save or Undo buttons to get it back into storage.