CudaText API

From Free Pascal wiki
Revision as of 17:51, 23 September 2015 by Alextp (talk | contribs) (→‎Caret-related)
Jump to navigationJump to search

Intro

This is API for CudaText in Python.

  • Main Py module is cudatext. Main module has constants, funcs, class Editor, objects of class Editor.
  • Additional module: cudatext_cmd has constants for command runner func.

Global funcs

msg_box

Editor class

Caret-related

get_caret

get_caret()

Returns 4-tuple: info about top visible caret: (PosX, PosY, EndX, EndY). PosY is line index (0-base), PosX is column (0-base), EndY/EndX are position of selection end for this caret or both -1 if no selection.

Text read/write

Properties get/set

Misc