Menu

binary Auto-Completion plugins

Alexey T.

Auto-Completion plugins can add intelligent auto-completion to any lexers. They are called by "Auto-Complete" (default shortcut is Ctrl+Space) and "Parameters popup" (default shortcut is Ctrl+Shift+Space) commands.

Plugins must support [cActionGetAutoComplete] and/or [cActionGetFunctionHint] actions and should handle them like this:

  • get caret position using [cActionGetCaretPos];
  • get search paths using [cActionGetText];
  • read current file using [cActionGetText] and maybe read all include-files;
  • prepare text buffer with list of resulting strings;
  • copy this buffer to the buffer provided by SynWrite.

The following functions must be exported by plugin:

See also:


Related

Wiki: SynAction
Wiki: SynInit
Wiki: binary API actions
Wiki: binary API
Wiki: cActionGetAutoComplete
Wiki: cActionGetCaretPos
Wiki: cActionGetFunctionHint
Wiki: cActionGetText

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.