Skip to content

Option hotspot

erinata edited this page May 4, 2012 · 2 revisions

Option hotspot is a type of dynamic hotspot. It allows a snippet to feature a collection of code pieces that user can navigate though. The syntax is to use (opt) at the beginning of hotspot and separate the code pieces by a pipe (|).

For example, if you have a snippet

Snippet Content:

$[![(opt)black|white|red|blue|green]!]

When you trigger this snippet, you will see

black

Now if you hit [right arrow], the text will become

white

And if you hit [right arrow] again, you will see red. And you can cycle through those 5 options by pressing the arrow keys. Once you have done, press tab to quit the option mode and you can continue to edit the document.

Back to Main Page

Clone this wiki locally