I have been searching for something that does this for a while now, but with no luck yet... We have an internal application that stores/uses text in HTML format. Now I am looki
Here are a couple of options for for an open source .NET-based text editor that handles syntax highlighting
It should be relatively easy to set these up for HTML, or find existing syntax definitions for HTML.
I'm not too sure about embedding spellcheck into it, but this article may be of interest:
SpellCheck.net spell checking parsing using C#
I am actually looking for .NET 2.0 winforms controls
I looked for one a couple of years ago and didn't find one.
So, I've developed one: see http://www.modeltext.com/html/
It's a WYSIWYG XHTML editor, written in C#, with a .Net-native (i.e. not COM) API. It supports some (not all) CSS properties, derives from System.Windows.Forms.Control, and depends on version 2 of the .Net framework (and on nothing else).
It doesn't include a spell-checker, but its API lets you walk and interact with the DOM, so you could develop spell-checker functionality yourself, if you wanted it.
Since I was too much of a cheapskate to buy a spell checking control for our internal app (that would have been total overkill), I cobbled together an IExtenderProvider that does wavy red line spellchecking on textboxes. I've been sitting on the code for a while but I just blogged about it; there's a sample application there.
Some caveats:
But, hopefully it'll give you some ideas, even if you're not able to use it directly.
Another thing you might consider is that I know some of the WPF text controls have spell checking built in. But I'm not sure how they handle HTML.
I'm in same boat as you are.
Using a managed wrapper around the MSHTML com control (dont remember which one, there are a few, for instance there is this one). From what I understand our company has examined a few of this kind of controls and at the moment we have decided to stick with MSHTML.
We also needed a spell checker, we are using RapidSpell. But there are plenty open source / free spell checkers.
We are pulling the plain text out of MSHTML and allowing the spell checker to process it. hen collect the list of he invalid words and their fixes and inject it back into the html stream.
It's not that much work, about a week to glue it all together.
About using the RTF control, we have examined this possibility as well, and decided not to go with it because we had lots of pain in the past with HTML > RTF > HTML.
One advantage the MSHTML control has over the other 3rd party controls is that it supports copy and paste into the control from most of the applications, you can copy from word or some other formatted text, and the pasted text will keep the formatting, some thing that is not supported by most of the other controls.
I just ran across Text Control. I can't speak from personal use, but it looks to be a very feature rich editor in pure .net. Seems to have wide format support, as well as the spell checking you need.
CKEditor (formerly fckEditor). It's everything including the kitchen sink, but you can configure the toolbar, so if you only want basic HTML features you can do that. It has examples for all kind of web programming langugages including ASP.NET, see http://ckeditor.com/demo . Also, it's open source.