RadEditor is a standard HTML / XHTML editor but not a code editor. You can use RadEditor only for creating, editing and formatting html content.
Nevertheless, I think that the following code project could be helpful for your scenario: Multiple Language Syntax Highlighting, Part 1: JScript
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.