Menu

cActionReplaceText

Alexey T.

This action can be called by plugin to delete and/or insert text at caret position of current editor.

Parameters:

  • A1 (Integer) - length of text to delete. Can be 0 for inserting only.
  • A2 (PWideChar) - points to text to insert. Can be 0 for deleting only.
  • A3 (Integer) - length of text to insert. Can be 0 for deleting only.
  • A4 - not used.

Return value: cSynError if editor is read-only or incorrect parameter values are passed, cSynOK otherwise.


Related

Wiki: binary API actions

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.