Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 699 Bytes

snippets.md

File metadata and controls

27 lines (22 loc) · 699 Bytes

Snippets

The Monaco editor used by TextrudeInteractive supports snippets in the Scriban editing window.

Adding Snippets.

TextrudeInteractive loads snippets from a file called "snippets.json" which it expects to locate in the %AppDataLocal%/TextrudeInteractive folder. For example: C:\Users\<your user name>\AppData\Local\TextrudeInteractive\snippets.json

An example snippets file is shown below...

{
   "Scriban": [
    {
      "label": "mysnippet",
      "documentation": "this an example snippet",
      "insertText" :"the text to insert"
    },
    {
      "label": "secondsnipet",
      "documentation": "another snippet",
      "insertText" :"more text"
    }
  ]
}