Search code examples
c#asp.netwysiwyg

WYSIWYG - Editor that validates source code


Is there a WYSIWYG editor that is able to format code?

So when anyone inserts code into the wysiwyg editor box, it would properly format it?


Solution

  • If you look around at the various wysiwyg editors for asp.net, what you'll find is that most of the support syntax highlighting via a plugin. The plugin will use a javascript library like prettify.js to do the highlighting on the client. Sometimes they're easy to set up, sometimes not.

    But you asked about validating in your title. Validating is very different and a much more complicated animal. You won't find that anywhere.