Printing a part of the files
Posted: Tue Jan 25, 2005 5:56 am
Hi,
I'd like to be able to compare two files, select a range and print those parts of both files as usual.
For a bit of background information: I regularly find bugs in our library, which then have to be passed to the project leaders for approval. Since source code is often easier to communicate, I print diff reports of the repository version versus my local fixed version to go along with the report. For fixes with a few lines this is much easier than copying the whole file to a shared location.
Of course it's a waste of paper to print the whole source twice, so I end up using the Clipboard compare feature to cut out only the block which has changed. The disadvantage of this approach is that I lose line number information.
Note that this differs from the filtered view option, because unchanged lines within the range are also included so that the code shows as it does in the editor.
Hope you find it useful enough to implement it
I'd like to be able to compare two files, select a range and print those parts of both files as usual.
For a bit of background information: I regularly find bugs in our library, which then have to be passed to the project leaders for approval. Since source code is often easier to communicate, I print diff reports of the repository version versus my local fixed version to go along with the report. For fixes with a few lines this is much easier than copying the whole file to a shared location.
Of course it's a waste of paper to print the whole source twice, so I end up using the Clipboard compare feature to cut out only the block which has changed. The disadvantage of this approach is that I lose line number information.
Note that this differs from the filtered view option, because unchanged lines within the range are also included so that the code shows as it does in the editor.
Hope you find it useful enough to implement it
