In this section we describe Kile's scripting programming interface.
Please note that the scripting API has not been finalized yet. The API described below might change in future versions of Kile.
First of all, Kile's script execution environment provides a global object called "kile", which owns the following methods:
KileTextDocument object which reflects the currently active
text document. Returns
null if no text document is active.
Opens a dialog with the given caption and label. Returns the value that user has entered.
Objects of the type
KileTextDocument represent text documents in Kile. They have the following
Deletes the character that is located immediately before the current cursor position and moves the cursor one position backward in the text.
Moves the cursor one position backward in the text.
Moves the cursor one position forward in the text.
Inserts the text contained in the variable
text into the document at the current
Inserts a bullet into the document at the current cursor position.
Selects the first bullet located in the document immediately after the current cursor location.
Selects the first bullet located in the document immediately before the current cursor location.
Moves the cursor one line up in the document.
Moves the cursor one line down in the document.
Returns the line which the cursor is currently located at.
Returns the column which the cursor is currently located at.
Moves the cursor to the line denoted by
Moves the cursor to the column denoted by