Skip to content

List hotspot

erinata edited this page May 4, 2012 · 1 revision

List hotspot is a type of dynamic hotspot. It allows a snippet to feature a collection of code pieces that user can choose from in a drop down list. The syntax is to use (lis) at the beginning of hotspot and separate the code pieces by a pipe (|).

For example, if you have a snippet

Snippet Content:

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

When you trigger this snippet, you will see a dropdown box in notepad++ showing 5 items, black, white, red, blue, and green. To choose an item, just navigate to the item using arrow keys and hit [tab]

If you want an empty item, you can do so by inserting a pipe like this.

Snippet Content:

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

The list items do not have to be sorted unless you want to use the "type-to-search" functionality. In that case, you need a list Hotspot like this:

Snippet Content:

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

As the list items are sorted in alphabetical other, you can type say "gre" to get to item "green" after triggering the snippet.

Back to Main Page