Page 1 of 1

Tab settings

Posted: 14 January 2006, 4:42 AM
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

Posted: 14 January 2006, 9:58 AM
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.

Posted: 14 January 2006, 11:55 AM
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

Posted: 15 January 2006, 5:21 AM
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

Posted: 15 January 2006, 9:44 AM
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.