You can see how to render RadEditor as a textbox without toolbars in this live demo: Displaying RadEditor as a TextBox
. You can hide the toolbar tools and modules by setting the ToolsFile property to point to an XML file having only <root></root> tags in it.
RadEditor does not offer the requested code
colorizing feature out-of-the box and we do not plan to provide support for it for the time being.
The RadControls Quick Start Framework features such a tool for its C#/VB/ASPX tabs underneath each example. The tool is delivered as source code and is available in the App_Code\QuickStart folder of the demo application (C:\Program Files (x86)\Telerik\RadControls for ASP.NET AJAX Q2 2011\Live Demos\App_Code\QuickStart\CodeViewerHelper.cs)
What you could do is add the QuickStart folder to your own application's App_Code, and then a single line of code will do the trick, e.g.
RadEditor1.Content = Telerik.QuickStart.CodeViewerHelper
The RenderFile method could read XML, ASPX, C# and VB.NET content.
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward!
We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>