Skip to end of metadata
Go to start of metadata


In this recipe, we show how to create a simple Ruble snippet, bind it to an activation trigger, and optionally place it in a menu.

The Code

In the snippet below, we create a very simple snippet, bind it to the activation character "foo", and place it in a menu. This is the entire Ruble file, though you could ad the menu items and commands to your existing file.

Once created and activated, type "foo" + TAB in your document and see "my_super_snippet" added to the document.