.NET text editor that accepts HTML and input/output with spellchecking

后端 未结 8 1981
臣服心动
臣服心动 2021-02-02 04:01

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

相关标签:
8条回答
  • 2021-02-02 04:18

    Here are a couple of options for for an open source .NET-based text editor that handles syntax highlighting

    • The ICSharpCode.TextEditor component of the SharpDevelop C# IDE
    • DotNet Fireball

    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#

    0 讨论(0)
  • 2021-02-02 04:26

    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.

    0 讨论(0)
  • 2021-02-02 04:33

    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:

    • It will think that HTML is misspelled, but you might be able to modify it to make it work for you.
    • Heck, it even thinks numerals are spelled wrong. An easy fix, but I've been too lazy to fix it.
    • If the dictionary should go missing, it has a total freak out.

    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.

    0 讨论(0)
  • 2021-02-02 04:41

    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.

    0 讨论(0)
  • 2021-02-02 04:42

    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.

    0 讨论(0)
  • 2021-02-02 04:42

    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.

    0 讨论(0)
提交回复
热议问题