Ben Fritz wrote: > On Jul 11, 5:10=A0pm, Dominique Pell=E9 <[email protected]> wrote: > > Bram Moolenaar wrote: > > > Christian - > > > > > I included your patch to produce a side-by-side diff with :TOhtml. > > > It looks nice! > > > > > > I see one problem. =A0In my ~/.vimrc, I have this: > > > > =A0 let html_use_css=3D1 > > =A0 let html_use_xhtml=3D1 > > =A0 let html_dynamic_folds=3D1 > > > > It allows to create dynamic folds in HTML output when doing :TOhtml. > > Clicking on the +/- in folds opens or closes them. =A0Doing :TOhtml > > on a diff output creates folds in HTML (good), but clicking on + does > > not open them (bug). I see that the HTML output in diff mode is > > missing the <script type=3D'text/javascript'>...</script> =A0section. > > > > I had meant to look at this patch, because if I recall the discussion > didn't include anything about dynamic folding. I haven't tried it > yet...is this the one that combined the two html outputs side-by-side > in the same HTML page, or does it create two separate pages? > > If it creates a single page (which I would certainly prefer), I'd like > to see clicking the '+' on one side to also open the '+' on the other > side. I remember giving a little thought to this. The javascript just > looks for a class or id (I forget which) of 'fold1', 'fold2', etc. It > shouldn't be too hard to change the class/id to 'side1fold1', > 'side1fold2', etc. and then have similar names on side2, and update > the javascript to open/close both sides. I certainly think this would > be preferable to only opening/closing folds on one side.
At least the part of the header that defines the javascript needs to be copied from one of the individual pages to the result page. I added code to copy the style information. Since this can be different for each page, I copy all of them. There is some duplication but it still works. For the javascript part only one copy is needed. Can someone make a patch for this? It would actually be nice if someone can take over maintenance, now that it's no longer a simple short script. -- Not too long ago, unzipping in public was illegal... /// 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 /// -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
