Jump to content

[Solved] Scite-Lite Doesn't Remmebr Some Settings


 Share

Recommended Posts

Hi all


I am using Autoit v3.3.14.5, with SciTE-Lite v3.5.4.

When I go to Menu:  Tools -> Chnage Indentation Settings...
I change the Indent Size to 4,
but for some reason it is not remembered on the next session.


Another thing:
When I press F8 to show the Output Pane on the bottom,
If I change its height (via dragging its top border with the mouse),
then next time it is not remembered..


Is there any thing I can do so these 2 things wil be remembered,
so I don't have to do it each time?


Thank you

Edited by Zohar
Link to comment
Share on other sites

  • Developers
25 minutes ago, Zohar said:

When I go to Menu:  Tools -> Chnage Indentation Settings...
I change the Indent Size to 4,
but for some reason it is not remembered on the next session.

That is the way SciTE works. Permanent changes need to be made in the SciTEUser.properties file.

Quote
tabsize
tab.size.filepattern
indent.size
indent.size.filepattern
use.tabs
use.tabs.filepattern
indent.auto
tab.indents
backspace.unindents
Sets the size of a tab as a multiple of the size of a space character in the style of the default style definition. The indent size is the size to use when performing automatic indentation and may be different from the tab size. Many people use a tab size of 8 but 4 character indentation. When creating indentation, use.tabs determines whether the indentation is made up purely from space characters or from a mix of tabs and spaces using as many tabs as possible.
The global tabsize, indent.size, and use.tabs properties can be overridden for files that match a pattern by using the file pattern forms:
indent.size.*.pas=3
If indent.auto is set then indent.size and use.tabs are set according to the contents of the opened document.
The properties file settings apply to newly opened files but remain constant once the file is open unless changed using the Change Indentation Settings dialog.
If tab.indents is set then pressing tab within indentation whitespace indents by indent.size rather than inserting a tab character. If backspace.unindents then pressing backspace within indentation whitespace unindents by indent.size rather than deleting the character before the caret.
25 minutes ago, Zohar said:

Another thing:
When I press F8 to show the Output Pane on the bottom,
If I change its height (via dragging its top border with the mouse),
then next time it is not remembered..

Same thing:

Quote
split.vertical
output.horizontal.size
output.vertical.size
output.initial.hide
If split.vertical is set to 1 then the output pane is to the right of the editing pane, if set to 0 then the output pane is below the editing pane. The output.*.size settings determine the initial size of the output pane. If output.initial.hide is 1, then the output pane is hidden when SciTE first starts up even when output.*.size is set; otherwise the output pane is shown at startup.

 

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Jos,
I now noticed a weird phenomnon:

It only remembers it for the Tab of the SciTEUser.properties file,
I have 2 other tabs (files), which are .au3 files,
and there, I still get the default value of 3, instead of 4..

I did not define any special pattrern for specific File Extensions..

This is the contents of my SciTEUser.properties file:

tabsize=4
indent.size=4
use.tabs=1

output.initial.hide=1
output.vertical.size=170

 

Do you know why it only applies to one tab and not all?

Link to comment
Share on other sites

If by restart you mean closing it and reopening, then yes, of course, many times..

I have 3 tabs open: SciTEUser.properties, File1.au3, File2.au3

It only works on the SciTEUser.properties file.
I tried changing the order of the tabs, and put the SciTEUser.properties in the middle or in the end, and restarting Scite,
and still, it only applies to SciTEUser.properties..

What can be the cause for it?

Link to comment
Share on other sites

  • Developers

Do you have a scite.properties file in your SCITE_USERHOME directory or in the directory the open file is in? 

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

The SciTEUser.properties file that I showed its contents in the previous post,
is the file that I got to via Menu: Options\Open User Options File.

This file's location is: C:\Users\<MyUserName>\
(the location was chosen by Scite Lite, when I clicked the "Open User Options File" MenuItem)


What is the full path of the SCITE_USERHOME folder?

Edited by Zohar
Link to comment
Share on other sites

  • Developers
25 minutes ago, Zohar said:

The SciTEUser.properties file

Not SciTEUser.properties, but scite.properties!  as the latter one takes priority over all other properties files.

 

26 minutes ago, Zohar said:

What is the full path of the SCITE_USERHOME folder?

That is something you see in the header text when you run a script within the full version of SciTE or you simply open the CMD prompt and type: set scite

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

OK

In Command Prompt,
If I type:  set scite
I get that there's no such environment variable.
(I did not define one, and the installer didn't, as can be concluded.
maybe this is because I am using the built-in Scite-Lite? I assume that it is like that to anyone?)

Same If I try:  set scite_userhome

I also executed simply:  set, to see all Environment Variables,
and found nothing that starts with "scite".

 

Regarding a scite.properties file,
since there's no Environment Variable for the path,
I checked in the default folder that Scite-Lite saves the preivousy entioned properties file (SciTEUser.properties), which as said, is C:\Users\<MyUserName>\,
and there, there is only 1 properties file, which is the SciTEUser.properties I created.

 

How should e continue according to this info?

Edited by Zohar
Link to comment
Share on other sites

  • Developers

That means you haven't installed the full SciTE4AutoIt3 installer and are using the lite or portable version.
The lite version is pretty fixed as far as configuration.
Use the Full installer when you like to modify stuff and benefit from all its extra's. :) 

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

2 hours ago, Jos said:

That means you haven't installed the full SciTE4AutoIt3 installer and are using the lite or portable version.

Yes,
that's why I wrote Scite-Lite in the title and in the first sentence of the first post,
to emphasize that it's the Lite version.


So If I stay with the Lite version then there's nothing I can do?
OK then, I will install the full version..


BTW are you one of the developers of Scite? (Full, or Lite)

Edited by Zohar
Link to comment
Share on other sites

  • Developers
53 minutes ago, Zohar said:

that's why I wrote Scite-Lite in the title

Sorry ...  didn't payed enough attention.

54 minutes ago, Zohar said:

So If I stay with the Lite version then there's nothing I can do?

The config is embedded and I know you will have limitations.

54 minutes ago, Zohar said:

BTW are you one of the developers of Scite? (Full, or Lite)

I maintain the source for both indeed ( which is actually the same source for both), but am using the official source of SciTE as a base and have several "small" modifications made for our purpose.... so all the credit for SciTE goes to Neil.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Hi Zohar,
I'm also using Autoit v3.3.14.5, with SciTE-Lite v3.5.4
In case it may be useful to you, here are some parameters from my file SciTEUser.properties
The indent size in permanent (4) in any tab and any kind of file.

#changed that one permanently (from 3 to 4) on 13 Nov. 2018
indent.size=4
indent.size.*.au3=4

Hope it helps :)

Link to comment
Share on other sites

Thank you very much pixelsearch.


I have just installed Scite4AutoIt3 (Full), and the problem was solved.

Like you wrote, it seems that there is something related to File Extension pattern matching, that happens differentlt in the Lite version vs the Full one,
since all *.properties files got the settings, yet all other files (e.g. .au3, .txt) didn't. It was not applie to them.


Because I installed Scite Full before seeing your reply, I couldn't implement your configuration any more.

My general one (without specifying .*.au3) works on all files..

Link to comment
Share on other sites

OK I have an update.


I uninstalled Scite Full, since it was too full for me..
For example, the Tools menu was so long, that you need to hover 2 arrows, to scroll it up and down.
And as you guys might've noticed in my other thread, I prefer small and light menus..

So I am back to Scite Lite.
(yet much appreciation to you Jos on the work on the Full version)


pixelsearch, I implemented what you suggested, and added a pattern for .au3 files.

So my SciTEUser.properties file is now:

tabsize=4
indent.size=4
indent.size.*.au3=4
use.tabs=1

output.initial.hide=1
output.vertical.size=170

And the problem is solved.. In the Lite edition.

 

BTW,
trying to write indent.size.*.*=4 doesn't work.
It only accepts a single extension at a time..

Link to comment
Share on other sites

  • Developers
48 minutes ago, Zohar said:

I uninstalled Scite Full, since it was too full for me..

That is a first I hear about something being too full. ....  but have no idea what that means. ;) 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers
3 minutes ago, Zohar said:

even before geting into AutoIt?

Nope...   We looked around a long time ago, what the best "single file" editor would be to include in the installer and found SciTE, so I wrote a Lexer for AutoIt3 and it was included.
I then started the separateSciTE4AutoIt3 installer project with AutoIt3Wrapper & Tidy....  which grew overtime in the current set of tools.

 

5 minutes ago, Zohar said:

You used Scite as an Editor for other file types

Now I do.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...