I have a problem with getting the contens of a RichEdit in a special format.
The problem is very simple:The text property of a richedit gives me the plain text. I need a "StyledText"-property that enables me to get and set the text with special codes for beginning and end of bolded, italiced and underlined text.
If "begin bold" is marked as "<B>" and "end bold" the same, I would have the following "StyledText":
"The word <B>fat<B> is marked bold"
I know it's possible to select some text and check selattributes to see if it's bold and then set the codes accordingly. But its too time consuming to check a lot of text that way. Offcourse should nesting of codes be possible as in:
"<U>The word <B>fat<B> is marked bold<U>",
where the sentence is underlined.
By the way, I'm using Delphi 3.02...