Update linenumber.
Keep the focus on the editor.
Process and inset the desired option.
Process key events.
Update the autocompleter used.
Configure QTextEdit.
Show better options for current text.
Return de text under cursor.
Update the offset of the linenumber.