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. |
Answered by
nightwing
Jul 21, 2021
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. |
0 replies
|
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 |
0 replies
Answer selected by
andrewnester
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.