The demo demonstrates how you can plug a custom formatting language which to be used in the Code dialog. Additional information about the Code Block feature can be found in the following article: http://www.telerik.com/help/silverlight/radrichtextbox-features-code-block.html/ http://www.telerik.com/help/wpf/radrichtextbox-features-code-block.html