This is a migrated thread and some comments may be shown as answers.

color-code text sections?

1 Answer 73 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Anne Chinn
Top achievements
Rank 1
Anne Chinn asked on 08 Jun 2011, 08:18 PM
Hello,

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.

Thanks,

Anne

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 10 Jun 2011, 02:53 PM

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: http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx.

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: http://demos.telerik.com/aspnet-ajax/editor/examples/customtools/defaultcs.aspx.



All the best,
Marin
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.

Tags
Editor
Asked by
Anne Chinn
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or