The "Editor" tab of the ribbon carries the text handling of the document being edited. Everything on it acts on that document alone: ![[20260904-qt-editor-ribbon.png]] ## Undo and Clipboard "Undo" and "Redo" step through the changes made to the document. "Cut", "Copy" and "Paste" work with the clipboard as they do anywhere, and the keyboard shortcuts of Microsoft Windows apply. ## Finding and Replacing "Find" searches the text of the document and "Replace" exchanges what it finds. "Select All" selects the whole document, which is what precedes replacing a name over a long script. Searching the document is a different thing from searching a panel: the fields on the panels look through the rows, the messages and the objects those panels show, and are described under [[Invantive Query Tool/Main Window#Searching in a Panel|Searching in a Panel]]. ## Goto Line "Goto Line" jumps to a line by its number. The line numbers stand in the margin of the editor, and a statement which fails names the line it failed on, so the two are used together. ## View "Wrap char", "Wrap word" and "Wrap none" decide what happens to a line which is wider than the editor: broken at any character, broken between words, or left to run on with a horizontal scroll bar. A long `in` list reads better wrapped; a script of short statements reads better not. "Language" sets the syntax highlighting of the document. The list holds the languages the editor knows, `SQL` being the one a new document starts in. From release 27.0 onwards the highlighting of a document set to Invantive UniversalSQL follows the vocabulary of the connection instead of a fixed list of words: keywords, functions, data types, constants, [[Invantive UniversalSQL/Packages/Packages|packages]], the statements of the application itself and the names of the reachable tables and views each get a colour of their own, and the completion offered while typing covers all of them together. Connecting to another database refreshes the vocabulary, so the words of the platform actually connected to are the ones coloured. "Insert from SQL" asks for a `.sql` file and inserts its text into the document at the cursor, which is how a script kept elsewhere is pulled into the one being written without opening it as a document of its own.