color-code text sections?

2 posts, 0 answers
  1. Anne Chinn
    Anne Chinn avatar
    15 posts
    Member since:
    Mar 2004

    Posted 08 Jun 2011 Link to this post


    I'm wondering whether it would be possible to do the following in the editor.

    I want to have a toolbar that has buttons similar to the Bold button, that when the user selects a segment of text, the text will become highlighted with a specific color. It seems like I should be able to do that with custom stylesheets. It would be even more ideal, if I was able to create a color-coded bracket on the left, surrounding the text so that when there are multiple selected sections that overlap, you could see them more clearly.


  2. Marin Bratanov
    Marin Bratanov avatar
    4533 posts

    Posted 10 Jun 2011 Link to this post

    Hello Anne,

    The only tool that RadEditor offers for code highlighting is called "Format Code Block". There are two other tools that offer a coloring functionality - the Foreground Color and Background Color split buttons.   You can examine how they works in our online demos:

    If this does not suit your need you can create a custom tool that achieves your desired functionality, as shown in the following online demo:

    All the best,
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top