Printing Source code

Questions and discussion about the ZBasic IDE.
Post Reply
victorf
Posts: 342
Joined: 01 January 2006, 4:08 AM
Location: Schenectady, New York

Printing Source code

Post by victorf »

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
Vic Fraenckel
KC2GUI
windswaytoo ATSIGN gmail DOT com
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post by dkinzer »

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: Select all

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.
- Don Kinzer
victorf
Posts: 342
Joined: 01 January 2006, 4:08 AM
Location: Schenectady, New York

Post by victorf »

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
Vic Fraenckel
KC2GUI
windswaytoo ATSIGN gmail DOT com
Post Reply