Igor Dvorkin 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.


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?

My thoughts:

- Vim is a text editor, not a WYSIWYG word processor
- Vim is multi-platform
- ":TOhtml" already works on ranges. IMHO it can be use with no source hacking to do all three of your alternatives, by yanking its output.
- Your patch has mixed CR+LF and LF-only ends-of-lines.
- I don't see why you converted so many tabs to spaces; it just makes the patch bulkier.


Best regards,
Tony.

Reply via email to