This functionality is not supported out-of-the-box. However, it could be implemented by the users as demonstrated in the Custom Code Formatting Language SDK example (https://github.com/telerik/xaml-sdk/tree/master/RichTextBox/CustomCodeFormattingLanguage).