Hi Brett,
RadEditor is an HTML editor, but not a plain text editor and it can work only with valid HTML tags.
For example to insert new line in plain
text the "\n" tag is used, but in HTML you should use the break tag -
"<br />". In order to achieve the desired behavior all the "\n"
from the text have to be replaced with "<br />" tags, but you will also need disable all client-side filters of RadEditor, which take care of the production of XHTML compliant content.
RadEditor does
not offer the requested code colorizing feature out-of-the box and we
do not plan to implement such a feature for the upcoming Q2 release of
RadControls for ASP.NET AJAX, because our To-Do list is pretty much set and this feature is not requested by many clients. If we receive more requests we will raise the priority of this feature.
Our suggestion is to implement the requested syntax colorizer by
not using RadEditor but with a standard editable DIV element:
<div contentEditable="true" style="border: solid 1px red;width:300px;height:300px">sample content</div>
Make sure that
the Javascript is working fine there and send us the code. We will make the code to work with RadEditor after that and send it back to you.
Best regards,
Rumen
the Telerik team