Thread View: comp.unix.programmer
10 messages
10 total messages
Started by Robert_Angelino
Fri, 22 Dec 2000 16:20
Source Code printing for code reviews....
Author: Robert_Angelino
Date: Fri, 22 Dec 2000 16:20
Date: Fri, 22 Dec 2000 16:20
15 lines
1600 bytes
1600 bytes
Hi all,
Anyone know of a package which given 2 files (a modified
version of a source file from a source distribution) will
print either a colorized or fontized merged version of the
differences. I'm looking for something which will combine
both files and show common text and the differences
in either a different color or different font.
I want to use this for code reviews.
--
Robert Angelino
High Tower Software Inc.
Director of Software Development
(949) 852-2233
Re: Source Code printing for code reviews....
Author: Eli Zaretskii
Date: Fri, 22 Dec 2000 17:04
Date: Fri, 22 Dec 2000 17:04
10 lines
1536 bytes
1536 bytes
Robert_Angelino@high-tower.com wrote: > > Anyone know of a package which given 2 files (a modified > version of a source file from a source distribution) will > print either a colorized or fontized merged version of the > differences. I'm looking for something which will combine > both files and show common text and the differences > in either a different color or different font. Sounds like you want "M-x ediff RET" and/or "M-x ediff-merge-files RET".
Re: Source Code printing for code reviews....
Author: Kai Großjohann
Date: Fri, 22 Dec 2000 17:47
Date: Fri, 22 Dec 2000 17:47
14 lines
1792 bytes
1792 bytes
On Fri, 22 Dec 2000, Eli Zaretskii wrote: > Sounds like you want "M-x ediff RET" and/or "M-x ediff-merge-files > RET". I was going to suggest that, too, but I didn't know how to get ediff to do the printout he wanted. It appears that he wants a fontified version of the output of the Unix program `merge'. But that wants three file names. Hm. kai -- ~/.signature
Re: Source Code printing for code reviews....
Author: Guillaume Dargaud
Date: Fri, 22 Dec 2000 20:41
Date: Fri, 22 Dec 2000 20:41
15 lines
1904 bytes
1904 bytes
Ahem, might get flamed for that, but Microsoft Word has a compare function that does just that. I've used it a couple times. [Tools][Track Changes][Compare Documents] > Anyone know of a package which given 2 files (a modified > version of a source file from a source distribution) will > print either a colorized or fontized merged version of the > differences. I'm looking for something which will combine > both files and show common text and the differences > in either a different color or different font. -- Guillaume Dargaud Colorado State University - Dept of Atmospheric Science http://rome.atmos.colostate.edu/ Thesaurus /nm./: a dinosaur with an excellent vocabulary.
Re: Source Code printing for code reviews....
Author: CBFalconer
Date: Sat, 23 Dec 2000 07:18
Date: Sat, 23 Dec 2000 07:18
21 lines
2155 bytes
2155 bytes
Robert_Angelino@high-tower.com wrote: > > Anyone know of a package which given 2 files (a modified > version of a source file from a source distribution) will > print either a colorized or fontized merged version of the > differences. I'm looking for something which will combine > both files and show common text and the differences > in either a different color or different font. > > I want to use this for code reviews. Don't know about printing, but MultiEdit will compare two source side by side and color various areas according to whether they are in the other file or not, etc. -- Chuck F (cbfalconer@my-deja.com) (cbfalconer@NOSPAM.worldnet.att.net) http://www.qwikpages.com/backstreets/cbfalconer (Remove "NOSPAM." from reply address. my-deja works unmodified) mailto:uce@ftc.gov (for spambots to harvest)
Re: Source Code printing for code reviews....
Author: Eli Zaretskii
Date: Sat, 23 Dec 2000 07:39
Date: Sat, 23 Dec 2000 07:39
19 lines
1656 bytes
1656 bytes
Kai Gro�johann wrote: > > On Fri, 22 Dec 2000, Eli Zaretskii wrote: > > > Sounds like you want "M-x ediff RET" and/or "M-x ediff-merge-files > > RET". > > I was going to suggest that, too, but I didn't know how to get ediff > to do the printout he wanted. At least Ediff does all that the proprietary tools suggested by others in this thread do. > It appears that he wants a fontified version of the output of the Unix > program `merge'. Doesn't Ediff do that in its merge commands? Doesn't ediff-files3 do that, _after_ the merge?
Re: Source Code printing for code reviews....
Author: Victor Wagner
Date: Sat, 23 Dec 2000 12:51
Date: Sat, 23 Dec 2000 12:51
25 lines
1772 bytes
1772 bytes
Robert_Angelino@high-tower.com wrote: : Hi all, : Anyone know of a package which given 2 files (a modified : version of a source file from a source distribution) will : print either a colorized or fontized merged version of the : differences. I'm looking for something which will combine : both files and show common text and the differences : in either a different color or different font. I'll suggest you to filter output of diff -u through some filter which would convert +ses and -ses into HTML tags : I want to use this for code reviews. : -- : Robert Angelino : High Tower Software Inc. : Director of Software Development : (949) 852-2233 -- Less is more or less more -- Y_Plentyn on #LinuxGER
Re: Source Code printing for code reviews....
Author: Lee Sau Dan
Date: Sun, 24 Dec 2000 02:55
Date: Sun, 24 Dec 2000 02:55
28 lines
1967 bytes
1967 bytes
--=-=-=
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
>>>>> "Kai" == Kai Gro�johann <Kai.Grossjohann@CS.Uni-Dortmund.DE> writes:
Kai> I was going to suggest that, too, but I didn't know how to
Kai> get ediff to do the printout he wanted.
Does ps-spool-buffer-with-faces render the ediff highlightings correctly?
BTW, for verions controlled under CVS, C-x v g (vc-annotate) is also a
useful and impressive feature.
--=-=-=
Content-Type: text/plain; charset=cn-big5
Content-Transfer-Encoding: 8bit
--
Lee Sau Dan ���u��(Big5) ~{@nJX6X~}(HZ)
.----------------------------------------------------------------------------.
| http://www.cs.hku.hk/~sdlee e-mail: sdlee@cs.hku.hk |
`----------------------------------------------------------------------------'
--=-=-=--
Re: Source Code printing for code reviews....
Author: Eli Zaretskii
Date: Sun, 24 Dec 2000 07:05
Date: Sun, 24 Dec 2000 07:05
14 lines
1710 bytes
1710 bytes
Lee Sau Dan wrote: > > >>>>> "Kai" == Kai Gro�johann <Kai.Grossjohann@CS.Uni-Dortmund.DE> writes: > > Kai> I was going to suggest that, too, but I didn't know how to > Kai> get ediff to do the printout he wanted. > > Does ps-spool-buffer-with-faces render the ediff highlightings correctly? Of course! ps-print doesn't care who added the colors, it just prints whatever face information is there. On a black-and-white printer, you might need to define suitable ps-*-faces lists to get the colors be transformed into bold, underline, or italics.
Re: Source Code printing for code reviews....
Author: Evgeny Roubinchtein
Date: Mon, 25 Dec 2000 01:52
Date: Mon, 25 Dec 2000 01:52
17 lines
2008 bytes
2008 bytes
>>>>> "Robert" == Robert Angelino <Robert_Angelino@high-tower.com> writes:
Robert> Anyone know of a package which given 2 files (a modified
Robert> version of a source file from a source distribution) will
Robert> print either a colorized or fontized merged version of the
Robert> differences. I'm looking for something which will combine
Robert> both files and show common text and the differences in
Robert> either a different color or different font.
The GNU enscript distribution comes with a script (called gdiffpp, if
memory serves) that will do something like that. The script is in
Perl, so it shouldn't be too much work to adapt that to your needs.
--
Evgeny
AG: Add Gibberish
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads