I have an existing application that has some parts of formatted text-blocks (standard formats such as bold, italic, unordered list, …) saved in the database. Currently these text-blocks are saved in a custom xml format. The editor is created with a WPF-RichtTextBox.
Since I have to make the editor more user-friendly and extend the application, and I know that in the future also SQL-Server Reporting Services and probably Silverlight must use this markup, I’m thinking about to change the format of the saved text-blocks. In the future there will be the following application-types that must interpret the markup:
- WPF-Applications (with an editor)
- HTML-Web-Application (maybe with an editor)
- SQL-Server Reporting-Services
- Silverlight (maybe with an editor)
I tend to use a subset of HTML. What would you use or advise and why? Maybe you also have a link to existing resources dealing with this topic?
Update
Currently, it seems that I will take HTML:
I plan to use a RichTextBox in the WPF-app als MainEditor. To convert I will use the microsoft sample converter from here. Does someone know if there is a newer version or has some remarks about pitfalls?
For silverlight I have looked at the silverlight RichTextBox: For all who plan to make something similar as I, be warned: The silverlight 4 RichTextBox seems not to be very powerfull (as far as I have seen). The simplest things such list-items with bullets must be done with a workaround. And it can not export in RichTextFormat! Don't count on this control without testing it.
For the HTML-site I will probably use CKEditor or TinyMce.
I thought also about using RTF as format, but because the silverlight RichtTextBox is does not support it, i will not use. For those who are interested in, here is a very interesting project for converting.