SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: scottm@interprose.com on September 21, 2021, 09:06:03 PM

Title: Globally turn off line indent
Post by: scottm@interprose.com on September 21, 2021, 09:06:03 PM
Hi My name is Scott and I'm new to SlickEdit. I'm trying to find out how to turn off Line Indent globally. Any help would be greatly appreciated. Thanks!
Title: Re: Globally turn off line indent
Post by: Graeme on September 22, 2021, 02:32:23 AM
Hi Scott
Can you give a specific example that shows exactly where you're seeing an indent that you don't want and what language you're using?  Also what edition and version of slick are you using?

In tools -> options -> languages -> all languages, you can set options that will be applied to every language  - if you set an option, that same option gets set individually in all languages.  It appears that if you then clear the global option, the individual language options do not all get cleared - actually I'm not sure what the strategy is, the individual ones do sometimes get cleared.
 
Title: Re: Globally turn off line indent
Post by: scottm@interprose.com on September 22, 2021, 09:24:08 PM
*
line1
  line2

I type line1 and hit enter, the cursor goes back to pos1 (for lack of a better term).
Then I hit 2 spaces and type line2 and hit enter. Instead of the cursor going to pos1 again, it lines up under the l in line2. Hope that makes sense!
Title: Re: Globally turn off line indent
Post by: Graeme on September 22, 2021, 10:42:07 PM
Hi Scott

The behaviour depends on the type of file.  Could you try answering the questions that I asked.

What language mode/ file extension you're using?  Also what edition and version of slick are you using?

You can see the language mode in the Document menu beside and below "select mode".

Title: Re: Globally turn off line indent
Post by: scottm@interprose.com on September 23, 2021, 08:29:03 PM
Sorry. Under Language Mode it says Plain Text. I'm running Slick Edit Standard 2020 (V 25.0.2.0 64 Bit).
I'm programming for a PICK system. The Language is PICK Basic. Thanks again!
Title: Re: Globally turn off line indent
Post by: Graeme on September 24, 2021, 12:04:04 AM
You should probably map your file extension to "visual basic".  In tools -> options -> languages -> file extension manager.  A file extension of "bas" by default maps to visual basic so presumably your file extension is not bas.

Does indenting sometimes determine the control flow like it does in Python  - i.e. correct indenting is extremely important?  According to this website it might
https://en.wikibooks.org/wiki/BASIC_Programming/Beginning_BASIC/Control_Structures/IF...THEN...ELSEIF...ELSE (https://en.wikibooks.org/wiki/BASIC_Programming/Beginning_BASIC/Control_Structures/IF...THEN...ELSEIF...ELSE)

How is slickedit to know whether you want multiple lines to be indented or just one line?

Title: Re: Globally turn off line indent
Post by: scottm@interprose.com on September 24, 2021, 02:26:07 PM
You're correct. I'm using txt as the extension. I'll try using bas instead. Thanks again!