Menu

cActionSetText

Alexey T.

This action can be called by plugin to write text to current editor.

Parameters:

  • A1 (Integer) - [text range id] (negative value) or line number (0-based).
  • A2 (PWideChar) - text buffer.
  • A3 (Integer) - buffer size, in chars.
  • A4 - not used.

Return value: cSynOK if all parameter values are correct, cSynError otherwise. Error is returned when a) incorrect text range id or line number is passed, b) zero buffer pointer or non-positive buffer size is passed, c) editor is read-only.


Related

Wiki: binary API actions
Wiki: binary text range id

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.