AdvRichEditor insert text line to custom postion with custom color

Set the caret to the beginning of the text with AdvRichEditor.SetCaret(cpBeginDoc) and use AdvRichEditor.InsertText('Line2'); After this set the selection for 'Line2' and use AdvRichEditor.SetSelectionColor(clGreen);