TRichView Reference | How to...
The key method is ApplyStyleConversion.
Example:
▪Demos\Delphi\Editors\Editor 2\
▪Demos\CBuilder\Editors\Editor 2\
Alternatively, you can use RichViewActions.
RichView © Sergey Tkachenko