On Fri, Sep 4, 2009 at 1:29 AM, Christian Brabandt<[email protected]> wrote: > > Hi Hari! > > On Do, 03 Sep 2009, Hari Krishna Dara wrote: > >> >> On Thu, Sep 3, 2009 at 3:59 PM, Christian Brabandt<[email protected]> wrote: >> > >> > Hi Hari! >> > >> > On Mi, 02 Sep 2009, Hari Krishna Dara wrote: >> > >> >> I couldn't determine if this was discussed before by searching. I want >> >> to export the current vimdiff to html, but 2html.vim only exports on >> >> window at a time. Is there a plugin or a trick to come up with both >> >> the windows participating in the diff? >> > >> > Interesting question. A made a simple hack, that will display all >> > diffed files in a frameset. See >> > http://www.256bit.org/~chrisbra/patches/Diff.html for the generated >> > html file >> > and >> > http://www.256bit.org/~chrisbra/patches/tohtml_diff.diff for the patch >> > to tohtml.vim >> > >> > Frames have the advantaged of beeing relatively simply created, (I >> > made no changes to syntax/2html.vim) but the disadvantage of not being able >> > to get synchronized scrolled (except for javascript maybe?) >> >> Exactly... I first thought about frames, but didn't consider it for two >> reasons: >> - synchronization is not possible or straight-forward (as you mentioned >> above). >> - Copy pasting into a HTML/RTF email is not easy/possible. > > Try > > http://www.256bit.org/~chrisbra/patches/tohtml_diff1.diff for the patch > and http://www.256bit.org/~chrisbra/patches/Diff2.html for the generated > html file >
I can't apply your previous or the new diff to 2html.vim that comes with vim72. What is the base file for this diff? I don't have this line at all in the 2html.vim that comes with 7.2GA. - runtime syntax/2html.vim VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Aug 9 2008 18:46:22) MS-Windows 32-bit GUI version with OLE support Compiled by b...@kibaale BTW, I looked at the diff attached. You still seem to lines that are wrapped, and there is some out of sync towards the end of the file. The line wrapping could lead to a lot more "out of sync", but I guess it was just by chance they didn't deviate much in the case of the file you attached. Also, I would prefer that the script be standalone driving 2html.vim (though it would then mean, the generated output is not consumable as it is, as it is a standalone html document). That way, it is easier to upgrade to newer versions of Vim when this file is changed. -- Hari > > regards, > Christian > -- > It is illegal to take more than three sips of beer at a time while standing. > [real standing law in Texas, United States of America] > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
