Tab settings

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

Tab settings

Post by victorf »

Something that has bugged me with every code editor I have used including ZBasic's. :? How do I set the tab stops so they work the way I want them? When I write code I want tab stops to be in increments of 2. So the first tab column would be at 3. I like my statement comment columns to be aligned - usually at column 41 or 45. This is the Monk :) in me.

How can I set up the IDE so that when I create/edit a .bas file this tab scheme is the default. I've tried the Change Indentation Settings on the options menu but that does not appear to be sticky. I started a new .bas file yesterday and had Tab and Indent Size set to 2. Every thing was fine. Today when I opened the file these settings are back to 4 and remarks columns are all screwed up. I know I am not doing something right. How do I make this work?

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 »

How do I set the tab stops so they work the way I want them? When I write code I want tab stops to be in increments of 2.
You can set the tab size and indent size globally or for specific file extensions. I believe that the following entries in your User options file will achieve your objective for newly created files.

Code: Select all

tab.size.bas=2
I'm away from my computer right now so I can't confirm this.

To edit your User options, select the "Open User Options" entry on the Options menu. The file will be empty if you haven't added anything to it yet.

The various tab and indent options are described in the SciTE help that is available via the Help menu. Many/most questions about the editor configuration are addressed in that file.
- Don Kinzer
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post by dkinzer »

Update: These settings in your User Options file should do the job:

Code: Select all

tab.size.*.bas=2
indent.size.*.bas=2
- Don Kinzer
victorf
Posts: 342
Joined: 01 January 2006, 4:08 AM
Location: Schenectady, New York

Post by victorf »

Don,

These changes seem to do the trick. Thanks :)

Where can the documentation for the IDE editor be found? I see that there are several of these config files reachable from the options menu.

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 »

Where can the documentation for the IDE editor be found?
Select 'ZBasic IDE Help' on the Help menu. This will launch a browser with an HTML help file open. Near the top of that file there is a link to 'SciTE Help'. This help file describes how to configure the operation of the editor itself.
- Don Kinzer
Post Reply