TTMSFMXMemo Highlight selection

Is it possible to load text, but when typing in the TTMSFMXMemo the new text I type would be a different font / font size / color?

Also if I select text with my mouse can I then change the selected text style?

I guess these are basic text editor features, but I am unsure how to implement those features in FM and your TTMSFMXMemo.

Please show me code how to do this.


Please note that font, font style & font colors are controlled by syntax rules. As such TTMSFMXMemo is a syntax highlighting memo and not a WYSIWYG editor like a TRichEdit.