On 10/21/06, Igor Dvorkin <[EMAIL PROTECTED]> wrote:
Many windows apps support a clipboard pasting format of HTML. This is
how you can copy code in Visual Studio 2005 and paste it into outlook
and see syntax highlighting.

I recommend something similar be done for VIM. Today, we have toHTML,
that's reasonable, but ideally we'd able to yank as HTML. I've created
a patch that can yank HTML to the clipboard as type HTML. I don't
think this patch should be submitted, instead used by the person
considering this feature request.

In my opinion, this kind of work shouldn't be done by hacking the
source code of VIM. You can use a vim script to call the synax
highlighting engine to convert the text into HTML code, and copy the
converted code into the clipboard with a DLL add-on (as we know, GVim
supports 'libcall' well).



Ideally this patch will be extended to allow the user to decide to :

a) yank text , convert it to HTML, and have show up as type HTML.
b) yank HTML, and have it have it show up as type HTML
c) yank text, and have it show up as HTML

My patch only implements 'b'

Thoughts?




Regards,


Edward L. Fox

Reply via email to