I want to change TMSFMXMemo SubString's Font Color Like:(keyword is "book") This is a book i add Keyword into TMSFMXMemoBasicStyler.AllStyles[0].Keywords
it is work but when keyword is chinese(unicode) it is not work. like KeyWord = "嵐"
or i can simple to change selected text's color ? like: mo.SelStart := 1;
mo.SelLength := 6;
mo.sel SelectionTextColor := claRed;
mo.SelectionBackGroundColor := clayellow; but it is not work
Thank you for your answer。 my question is that Since FMX doesn't have an equivalent of TRichEdit, how can I output a differently colored text with tmsfmxmemo ? LIKE: this is a book there are three books
Coloring of text in TTMSFMXMemo is based on syntax rules, for example the keyword list in syntax rules. If you want a rich editor, i.e. an edit control where you can modify text format irrespective of syntax rules, we'd suggest to have a look at our TTMSFMXRichEditor
As explained, the only way colors are applied to text in TTMSFMXMemo, is by the styler keyword definitions, so for each word where you want to apply a color for, you'd need to add this as keyword.