public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  print side-by-side diff w/ highlighting?
@ 2009-08-14 17:56 Grant Edwards
  2009-08-14 17:58 ` [gentoo-user] " Grant Edwards
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Grant Edwards @ 2009-08-14 17:56 UTC (permalink / raw
  To: gentoo-user

I'm trying to find some sort of side-by-side diff that will
highlight the differences and produce pritable output (e.g.
html or postscript).

I've found tools to "colorize" diff output, but not for
side-by-side.  I've found tools to display side-by-side
differences with hightlights, but they can't print.

How do I print side-by-side diff with changes hightlighted
(e.g. bold or colored)?

-- 
Grant Edwards                   grante             Yow! My polyvinyl cowboy
                                  at               wallet was made in Hong
                               visi.com            Kong by Montgomery Clift!




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-user]  Re: print side-by-side diff w/ highlighting?
  2009-08-14 17:56 [gentoo-user] print side-by-side diff w/ highlighting? Grant Edwards
@ 2009-08-14 17:58 ` Grant Edwards
  2009-08-14 18:17   ` Nikos Chantziaras
  2009-08-14 18:03 ` [gentoo-user] " Paul Hartman
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: Grant Edwards @ 2009-08-14 17:58 UTC (permalink / raw
  To: gentoo-user

On 2009-08-14, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> I'm trying to find some sort of side-by-side diff that will
> highlight the differences and produce pritable output (e.g.
> html or postscript).
>
> I've found tools to "colorize" diff output, but not for
> side-by-side.

To be a bit more specific, I've found "colordiff" but it
highlights entire lines rather than just changes, and it
doesn't product printable output.

-- 
Grant Edwards                   grante             Yow! I brought my BOWLING
                                  at               BALL -- and some DRUGS!!
                               visi.com            




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] print side-by-side diff w/ highlighting?
  2009-08-14 17:56 [gentoo-user] print side-by-side diff w/ highlighting? Grant Edwards
  2009-08-14 17:58 ` [gentoo-user] " Grant Edwards
@ 2009-08-14 18:03 ` Paul Hartman
  2009-08-14 18:20   ` [gentoo-user] " Grant Edwards
  2009-08-14 20:19 ` Grant Edwards
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: Paul Hartman @ 2009-08-14 18:03 UTC (permalink / raw
  To: gentoo-user

On Fri, Aug 14, 2009 at 12:56 PM, Grant
Edwards<grant.b.edwards@gmail.com> wrote:
> I'm trying to find some sort of side-by-side diff that will
> highlight the differences and produce pritable output (e.g.
> html or postscript).
>
> I've found tools to "colorize" diff output, but not for
> side-by-side.  I've found tools to display side-by-side
> differences with hightlights, but they can't print.
>
> How do I print side-by-side diff with changes hightlighted
> (e.g. bold or colored)?

redirect "diff -y" to printer?



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-user]  Re: print side-by-side diff w/ highlighting?
  2009-08-14 17:58 ` [gentoo-user] " Grant Edwards
@ 2009-08-14 18:17   ` Nikos Chantziaras
  2009-08-14 18:21     ` Grant Edwards
  0 siblings, 1 reply; 9+ messages in thread
From: Nikos Chantziaras @ 2009-08-14 18:17 UTC (permalink / raw
  To: gentoo-user

On 08/14/2009 08:58 PM, Grant Edwards wrote:
> On 2009-08-14, Grant Edwards<grant.b.edwards@gmail.com>  wrote:
>> I'm trying to find some sort of side-by-side diff that will
>> highlight the differences and produce pritable output (e.g.
>> html or postscript).
>>
>> I've found tools to "colorize" diff output, but not for
>> side-by-side.
>
> To be a bit more specific, I've found "colordiff" but it
> highlights entire lines rather than just changes

In diffs, changes are always lines.  It's line based, not character based.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-user]  Re: print side-by-side diff w/ highlighting?
  2009-08-14 18:03 ` [gentoo-user] " Paul Hartman
@ 2009-08-14 18:20   ` Grant Edwards
  0 siblings, 0 replies; 9+ messages in thread
From: Grant Edwards @ 2009-08-14 18:20 UTC (permalink / raw
  To: gentoo-user

On 2009-08-14, Paul Hartman <paul.hartman+gentoo@gmail.com> wrote:
> On Fri, Aug 14, 2009 at 12:56 PM, Grant Edwards<grant.b.edwards@gmail.com> wrote:
>> I'm trying to find some sort of side-by-side diff that will
>> highlight the differences and produce pritable output (e.g.
>> html or postscript).
>>
>> I've found tools to "colorize" diff output, but not for
>> side-by-side.  I've found tools to display side-by-side
>> differences with hightlights, but they can't print.
>>
>> How do I print side-by-side diff with changes hightlighted
>> (e.g. bold or colored)?
>
> redirect "diff -y" to printer?

I want changes highlighted.  All diff -y does is mark which
lines have changed.

-- 
Grant Edwards                   grante             Yow! Quick, sing me the
                                  at               BUDAPEST NATIONAL ANTHEM!!
                               visi.com            




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-user]  Re: print side-by-side diff w/ highlighting?
  2009-08-14 18:17   ` Nikos Chantziaras
@ 2009-08-14 18:21     ` Grant Edwards
  0 siblings, 0 replies; 9+ messages in thread
From: Grant Edwards @ 2009-08-14 18:21 UTC (permalink / raw
  To: gentoo-user

On 2009-08-14, Nikos Chantziaras <realnc@arcor.de> wrote:
> On 08/14/2009 08:58 PM, Grant Edwards wrote:
>> On 2009-08-14, Grant Edwards<grant.b.edwards@gmail.com>  wrote:
>>> I'm trying to find some sort of side-by-side diff that will
>>> highlight the differences and produce pritable output (e.g.
>>> html or postscript).
>>>
>>> I've found tools to "colorize" diff output, but not for
>>> side-by-side.
>>
>> To be a bit more specific, I've found "colordiff" but it
>> highlights entire lines rather than just changes
>
> In diffs, changes are always lines.  It's line based, not
> character based.

Which is why it does't meet my requirements.  I want the
changes hightlighted.  I've found tons of utilties (like meld)
that do that on-screen, but I haven't found any that print.

-- 
Grant Edwards                   grante             Yow! I know things about
                                  at               TROY DONAHUE that can't
                               visi.com            even be PRINTED!!




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-user]  Re: print side-by-side diff w/ highlighting?
  2009-08-14 17:56 [gentoo-user] print side-by-side diff w/ highlighting? Grant Edwards
  2009-08-14 17:58 ` [gentoo-user] " Grant Edwards
  2009-08-14 18:03 ` [gentoo-user] " Paul Hartman
@ 2009-08-14 20:19 ` Grant Edwards
  2009-08-14 23:08 ` [gentoo-user] " felix
  2009-08-14 23:34 ` Volker Armin Hemmann
  4 siblings, 0 replies; 9+ messages in thread
From: Grant Edwards @ 2009-08-14 20:19 UTC (permalink / raw
  To: gentoo-user

On 2009-08-14, Grant Edwards <grant.b.edwards@gmail.com> wrote:

> How do I print side-by-side diff with changes hightlighted
> (e.g. bold or colored)?

FWIW, I couldn't find anything, so I wrote my own utility. It's
not very general purpose since it assumes that there've been
only changed lines and no lines inserted/deleted.  But, it
works for my use-case and it generates either HTML or
postscript output. :)

-- 
Grant Edwards                   grante             Yow! What a COINCIDENCE!
                                  at               I'm an authorized "SNOOTS
                               visi.com            OF THE STARS" dealer!!




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user]  print side-by-side diff w/ highlighting?
  2009-08-14 17:56 [gentoo-user] print side-by-side diff w/ highlighting? Grant Edwards
                   ` (2 preceding siblings ...)
  2009-08-14 20:19 ` Grant Edwards
@ 2009-08-14 23:08 ` felix
  2009-08-14 23:34 ` Volker Armin Hemmann
  4 siblings, 0 replies; 9+ messages in thread
From: felix @ 2009-08-14 23:08 UTC (permalink / raw
  To: gentoo-user

On Fri, Aug 14, 2009 at 05:56:03PM +0000, Grant Edwards wrote:
> I'm trying to find some sort of side-by-side diff that will
> highlight the differences and produce pritable output (e.g.
> html or postscript).
> 
> I've found tools to "colorize" diff output, but not for
> side-by-side.  I've found tools to display side-by-side
> differences with hightlights, but they can't print.
> 
> How do I print side-by-side diff with changes hightlighted
> (e.g. bold or colored)?

Emacs has ediff-files and ediff-buffers commands which colorize the
individual changes within each line, altho they seem to be word based
rather than character, such that if only a single character is
different, it will highlight the entire word containing that character.

I do not know how to print from it, however; it is interactive.  There
may be some obscure command, but since I haven't had or used a
functioning printer in years, I don't know.

-- 
            ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
     Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user]  print side-by-side diff w/ highlighting?
  2009-08-14 17:56 [gentoo-user] print side-by-side diff w/ highlighting? Grant Edwards
                   ` (3 preceding siblings ...)
  2009-08-14 23:08 ` [gentoo-user] " felix
@ 2009-08-14 23:34 ` Volker Armin Hemmann
  4 siblings, 0 replies; 9+ messages in thread
From: Volker Armin Hemmann @ 2009-08-14 23:34 UTC (permalink / raw
  To: gentoo-user

On Freitag 14 August 2009, Grant Edwards wrote:
> I'm trying to find some sort of side-by-side diff that will
> highlight the differences and produce pritable output (e.g.
> html or postscript).
>
> I've found tools to "colorize" diff output, but not for
> side-by-side.  I've found tools to display side-by-side
> differences with hightlights, but they can't print.
>
> How do I print side-by-side diff with changes hightlighted
> (e.g. bold or colored)?

kdiff3?
xxdiff?



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-08-14 23:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-14 17:56 [gentoo-user] print side-by-side diff w/ highlighting? Grant Edwards
2009-08-14 17:58 ` [gentoo-user] " Grant Edwards
2009-08-14 18:17   ` Nikos Chantziaras
2009-08-14 18:21     ` Grant Edwards
2009-08-14 18:03 ` [gentoo-user] " Paul Hartman
2009-08-14 18:20   ` [gentoo-user] " Grant Edwards
2009-08-14 20:19 ` Grant Edwards
2009-08-14 23:08 ` [gentoo-user] " felix
2009-08-14 23:34 ` Volker Armin Hemmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox