brace icon indicating copy to clipboard operation
brace copied to clipboard

About AutoCompletion

Open zhouyusd opened this issue 4 years ago • 0 comments

var langTools = window.ace.acequire("ace/ext/language_tools");
var flowCompleter = {
      getCompletions: function (editor, session, pos, prefix, callback) {
            
          callback(null, [
              {
                  caption: 'include',
                  meta: 'keyword',
                  value: 'include',
               }
           ])
       }
}
langTools.addCompleter(flowCompleter);

I added some keywords I want to distinguish between languages. What should I do

zhouyusd avatar Oct 27 '20 10:10 zhouyusd