CudaText API
From Free Pascal wiki
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
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.