ScintillaNET icon indicating copy to clipboard operation
ScintillaNET copied to clipboard

Get HTML and RTF directly (instead of copying to clipboard)

Open DaRumpel opened this issue 10 years ago • 5 comments

The old Scintilla.NET control only allowed to export HTML to a StreamWriter. The new Scintilla.NET (3.5) only allows to copy HTML/RTF directly to the clipboard (if I'm not mistaken). Wouldn't it be better to have a method that just returns the HTML as a string and leave it to the developer what to do with it (write to file, copy to clipboard, show in browser, ...)?

DaRumpel avatar Jul 14 '15 09:07 DaRumpel

Issue #1 specifically requested that HTML be copied to the clipboard and so that is how it got implemented.

I think I can also export it as a string if you would like.

jacobslusser avatar Jul 14 '15 14:07 jacobslusser

That would be great, because it is the most flexible method.

DaRumpel avatar Jul 14 '15 20:07 DaRumpel

Partial support for this was added in the 3.5.4 release. I'll leave the issue open though because I want to get RTF support completed before I close it out.

jacobslusser avatar Oct 19 '15 01:10 jacobslusser

When you say "RTF" support, does that mean Scintilla will be usable as a RichText editor? If so, that would be amazing and help me tremendously with a project that is on hold simply because of how annoying it is to work with the Visual Studio RichTextBox.

seraphx2 avatar Nov 07 '15 17:11 seraphx2

It wouldn't be fair to call ScintillaNET a RTF editor by any stretch of the definition, even when support for exporting is complete. RTF allows for quite a few additional document entities like tables, bulleted lists, embedded images, etc... which ScintillaNET will never be able to do.

Once RTF export is completed, however, ScintillaNET should be able to generate an RTF document that represents the basic styling which ScintillaNET supports. No RTF import support is planned.

jacobslusser avatar Nov 09 '15 04:11 jacobslusser