I'm basically using a RichTextBox to create an email client that will send HTML messages. I've seen several solutions for converting the contents of a RichTextBox into HTML. The process of generating the various tags based on the font characteristics of the text seems straightforward enough.
I need to provide the user with the ability to embed links in their text. They're going to highlight a piece of text then specify a link for it. I'm looking for suggestions on how to keep track of those links so they can be written into the HTML when the user is done composing their message.
My current best solution is to assign unique colors to each link.. colors that are not available to the user for regular (non-linking) text. I would keep a running index with each color's link address. I don't like this plan but it's all I've got right now.
I need to provide the user with the ability to embed links in their text. They're going to highlight a piece of text then specify a link for it. I'm looking for suggestions on how to keep track of those links so they can be written into the HTML when the user is done composing their message.
My current best solution is to assign unique colors to each link.. colors that are not available to the user for regular (non-linking) text. I would keep a running index with each color's link address. I don't like this plan but it's all I've got right now.