Programmatically color-highlighting the text contained in the editor

  •  04-13-2010, 11:11 AM

    Programmatically color-highlighting the text contained in the editor

    Hello, I was wondering if anyone knew what the approach would be to programmatically highlight text in the editor in asp.net.  By "highlighting" the text, I mean the equivalent of text highlights in Microsoft Word or the use of background-color in html lingo (they both look the same).  For example, let's say my editor contains this statement...
     
    All work and no play makes Jack a dull boy.
     
    And I want it to look like this...
     
    All work and no play makes Jack a dull boy.
     
    How would I go about doing this programmatically in asp.net?  Obviously, the color and the location (indexes within the string) are variables I need to feed into the code.  The highlights would turn on/off with the firing of an event (say toggling a radio button or a checkbox that is outside the editor).
     
    Thank you in advance.

    ~Paul
View Complete Thread