-
Loving the library so far... it's clear, from other implementations in the wild, ACE is super powerful - I just need a few hints to know where to find my answers in src. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Answering my own question for #1 - Snippets API is detailed here: https://cloud9-sdk.readme.io/docs/snippets though I'm still fuzzy on how to apply a custom snippets file. |
Beta Was this translation helpful? Give feedback.
-
To add custom snippets you can use something similar to what language_tools does var {snippetManager} = ace.require("ace/snippets")
var snippets = snippetManager.parseSnippetFile(snippetText);
snippetManager.register(snippets, "defaultLanguageName"); if you store snippets as an array of objects you can use JSON.parse instead of using |
Beta Was this translation helpful? Give feedback.
To add custom snippets you can use something similar to what language_tools does
if you store snippets as an array of objects you can use JSON.parse instead of using
parseSnippetFile
.