> -----Original Message-----
> From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 29, 2006 11:06 AM
> To: CF-Community
> Subject: pretty printing
> 
> I'm trying to take some code and format it for printing. I'm trying to do
> it
> in word and it just does not want to look nice for me. I've tried it in
> eclipse, but it doesn't want to print with line numbers. I've tried it in
> homesite and the color messes up when I have a new line in the middle of a
> text block. Does anyone know of an application that can take some properly
> tabbed code and print it out in the same tabbing but with line numbers and
> maybe some color? Either that or someone who knows how to use word a LOT
> better than I do?
> Thanks

It's not perfect but in Word I use a special "Code" style I created: 8 point
(well, at least, smaller than body) text, your favorite monospaced font and
tight line spacing.

I almost always need to print the document out in landscape (sometimes
landscape on legal paper) but it generally works pretty well.  No
color-coding tho'.  You have to sometimes tweak long lines (although if you
need more space it's almost always a sign that that line is too long to
begin with).

Here's a Blog I came across that has a lot of comments on this topic -
mostly from the angle of using VS.net - apparently if you copy and paste
from VS.net into Word it maintains it's color-coding:

http://blogs.msdn.com/brada/archive/2004/10/05/238427.aspx

This online tool might also work but my experience with copying out of it
has been mixed at best:

http://www.manoli.net/csharpformat/

Overall I've not found a perfectly easy solution, but I get by.

Jim Davis



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:5:207687
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to