Get Selected Text
get_selected_textReturns the text highlighted in the Xojo IDE code editor, including its character offset and length, so you can inspect selections or locate offsets for editing. Requires an active code editor.
Instructions
Returns the text selected in the Xojo IDE's code editor, after a first line 'start= length=' giving its position in characters from the start of the item's code. Fails if no code editor is active. Use it to see what the user has highlighted, or to find offsets for set_selected_text; to read a whole item, use get_code. Needs the Xojo IDE running with the project open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||