Re: Paste as HTML
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? Your patch appears to mostly change indent... With a simple script you can invoke 2html.vim on highlighted text and yank the result into the clipboard. What is the added value of marking it as HTML on the clipboard? -- hundred-and-one symptoms of being an internet addict: 86. E-mail Deficiency Depression (EDD) forces you to e-mail yourself. /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ ///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\download, build and distribute -- http://www.A-A-P.org/// \\\help me help AIDS victims -- http://ICCF-Holland.org///
Re: Paste as HTML
Hello * What is the added value of marking it as HTML on the clipboard? The added value is that you are able to paste the text into a word processing program like AbiWord, MS Word or StarWriter in a way that the HTML-Tags are not shown, but are interpreted by the word processing program in order to format the text as it would be formatted in a HTML browser. To achieve this know, I only see one way: Convert your text to HTML, then save it as HTML, open it with a web browser, copy it from here into the clipboard and paste it into a word processing program. With best regards Mathias
Re: Paste as HTML
Mathias Michaelis wrote: Hello * What is the added value of marking it as HTML on the clipboard? The added value is that you are able to paste the text into a word processing program like AbiWord, MS Word or StarWriter in a way that the HTML-Tags are not shown, but are interpreted by the word processing program in order to format the text as it would be formatted in a HTML browser. To achieve this know, I only see one way: Convert your text to HTML, then save it as HTML, open it with a web browser, copy it from here into the clipboard and paste it into a word processing program. With best regards Mathias What about opening the HTML file directly as RTF in a word processor? Best regards, Tony.
Re: Paste as HTML
Mathias Michaelis wrote: What is the added value of marking it as HTML on the clipboard? The added value is that you are able to paste the text into a word processing program like AbiWord, MS Word or StarWriter in a way that the HTML-Tags are not shown, but are interpreted by the word processing program in order to format the text as it would be formatted in a HTML browser. To achieve this know, I only see one way: Convert your text to HTML, then save it as HTML, open it with a web browser, copy it from here into the clipboard and paste it into a word processing program. Why don't these programs offer the option paste as HTML? I mean, the user must have a choice if he wants the HTML as text or the resulting markup. -- From know your smileys: :} You lie like Pinocchio /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ ///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\download, build and distribute -- http://www.A-A-P.org/// \\\help me help AIDS victims -- http://ICCF-Holland.org///
Re: Paste as HTML
Hello Tony To achieve this know, I only see one way: Convert your text to HTML, then save it as HTML, open it with a web browser, copy it from here into the clipboard and paste it into a word processing program. What about opening the HTML file directly as RTF in a word processor? I guess the original poster wants to insert code snippets into an already existing documentation. Regards Mathias