SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: Peter Steinberg on May 26, 2009, 10:57:00 pm

Title: tab expansion not displaying correctly on longer lines
Post by: Peter Steinberg on May 26, 2009, 10:57:00 pm
In a 'C' file, with the options set to indent with tabs, and tabs set to "+4", there are instances where the a small box will be displayed instead of tabbing out to the correct column.

For example, try the attached one line file.

(It also happens in a plain text file with the tabs set to "+8").

Thanks,
  Peter Steinberg
Title: Re: tab expansion not displaying correctly on longer lines
Post by: chrisant on May 27, 2009, 01:35:02 am
It seems like past column 256 hard tab characters are not expanded anymore.
Title: Re: tab expansion not displaying correctly on longer lines
Post by: Peter Steinberg on May 27, 2009, 02:48:46 pm
That was my first thought, but if you change the last tab that displayed properly to two space characters, the next tab will then display properly.
Title: Re: tab expansion not displaying correctly on longer lines
Post by: ScottW, VP of Dev on May 27, 2009, 07:03:26 pm
chrisant is correct; by default SlickEdit doesn't expand tabs past column 256. You can override this by setting tabs to "1 1024 +4", or use a larger value than 1024 if needed.
Title: Re: tab expansion not displaying correctly on longer lines
Post by: Peter Steinberg on May 27, 2009, 07:13:04 pm
That works, thanks.

Now how do I easily set the default for all languages to having a larger margin?
Title: Re: tab expansion not displaying correctly on longer lines
Post by: ScottW, VP of Dev on May 27, 2009, 07:28:11 pm
It depends on what you mean by "margin". If you are referring to the grayish vertical area to the left of the editor window (but still within the editor pane), you can set that by visiting Tools > Options > Appearance > General. Set the value for "Window left margin" to something bigger.

If you are referring to a region of whitespace within a file created by Word Wrap, then that must be set on a language-by-language basis...sorry.
Title: Re: tab expansion not displaying correctly on longer lines
Post by: Peter Steinberg on May 27, 2009, 07:36:53 pm
I'm referring to the "1024" referenced in the "tabs" command you listed.

It's nice having all the customization for various languages, but a way to set the default value for all of them would be nice.
Title: Re: tab expansion not displaying correctly on longer lines
Post by: hs2 on May 27, 2009, 08:26:15 pm
@Peter: It's already on the feature list. See here (http://community.slickedit.com/index.php?topic=4810.0). So maybe one day... ;)
HS2