Forum Index
Printing Source code

 
Author Message
victorf



Joined: 01 Jan 2006
Location: Schenectady, New York

Posted: 31 May 2006, 11:29 AM    Post subject: Printing Source code

I am somewhat of a neatfreak when it comes to serious coding. I have comment boxes and lots of comments throughout the code. I keep the code/comments under 80 characters so I won't get line wrapping when I print the code. The line number display and the allowable width for code in the IDE creates a problem for me. I have to remember to turn off the line numbers and then use Print Setup to adjust the margins back to 0.5" all around which is all my printer needs.

Is there any way to make this print setup "sticky" or must I do this every time I want to print?

Any enlightenment will be appreciated.

Vic
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Location: Portland, OR

Posted: 31 May 2006, 16:04 PM    Post subject:

You can achieve the desired result by placing the following two lines in your User Options file. The easiest way to do this is to use the 'Load User Options File' entry on the Options menu. After editing this file, you'll need to exit and restart the IDE to have the changes take effect.
Code:
print.margins=500,500,500,500
line.margin.visible=0

One downside to turning off line numbers is that it significantly reduces the area of the window that can be used to make line selections. If this is a problem you can temporarily restore line numbers using View | Line Numbers.
Back to top
victorf



Joined: 01 Jan 2006
Location: Schenectady, New York

Posted: 31 May 2006, 19:33 PM    Post subject:

Don,

Thanks for the reply!

I am content with setting the print margins and I can live with turning off line numbers before printing. I like them on the screen. I only print once in a while.

Vic
Back to top
Display posts from previous:   
Page 1 of 1

 



ZBasic Microcontrollers Home
All content Copyright © 2005, 2006, 2007, 2008 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group