php-diff icon indicating copy to clipboard operation
php-diff copied to clipboard

Want to see the whole file

Open flashover opened this issue 13 years ago • 7 comments

When looking at the Side by Side diff, it shows me something like:


1 2 3 4 5 6 … 54 55 56


You can see it "compacted" something with those three dots (...). How can I fix it so I would see the whole file?

The library itself works great! I tested another PHP diff library and it didn't respect the TABs in the output.

flashover avatar Nov 02 '11 22:11 flashover

I too would like this feature. It would be great to output the whole file and not 'skip' it using the ellipsis.

chrisharrison avatar Nov 18 '11 09:11 chrisharrison

Yes, i even would like this feature. I think it should be a basic feature. ;) Sad to see that the project seems not to be updated anymore.

dkern avatar Mar 20 '12 18:03 dkern

Hi! I need the same, this is not a feature.

mfg Andi

Tripstrue avatar Jul 30 '12 18:07 Tripstrue

This feature is greatly needed.

ghost avatar Oct 04 '12 11:10 ghost

Checking the code it seems this is doable by just putting a really large value with key 'context' in the options array. $options = array( //'ignoreWhitespace' => true, //'ignoreCase' => true, 'context'=>9999999999, );

angulion avatar Jan 09 '14 15:01 angulion

'context'=>9999999999, not work. are you sure? @angulion

djfly avatar Aug 19 '14 13:08 djfly

'context'=>9999999999 does work, you've got to set this in Diff.php's $defaultOptions.

Thanks for the tip, it helped.

migliori avatar Aug 03 '17 13:08 migliori