Jump to content

Recommended Posts

  • Developers
Posted (edited)

SciTE session information is stored in a session file, which is restored when SciTE is restarted. Not sure which version you had before but there is nothing change between the current >1 year old production and the beta version. Even the current production didn't have many changes... So which versions are you comparing?

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.
  :)

  • Developers
Posted (edited)

Thanks ...I understand now and see the  issue myself as well.
I have found what wascausing it but it took a while to figure out this strange behavior and the fix for it.

Think I git it covered now in the latest version of AutoItTools.lua  available in the Beta directory. :) 

 

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.
  :)

  • Developers
Posted
  On 3/18/2022 at 11:39 AM, Jos said:

Updated the Dynamic UDFs logic (SciLexer.dll & AutoItTools.lua) a bit which now also allows for a separate textformat with style.au3.17.
it will use style.au3.16 when style.au3.17 isn't defined.

Expand  

The latest version available seems to be running fine it now for me.
Just for clarity: The Dynamic UDF's syntax coloring will be refreshed when you:

  1. Open an AU3 file
  2. Change buffer to another AU3 file. This means it will not refresh when you change from x.AU3 to a Y.LUA and then back to x.AU3.
  3. Save an AU3 file. 

So in case you create a new UDF in your current sourcefile, it will only start showing a color of the Dynamic UDF's when a save is performed or switch to another AU3 file and back. Let me know when there are questions on the above.

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.
  :)

Posted (edited)

@Jos please check highlighting and folding with this following snippet:

#comments-start
some comment
#comments-End

#cs
some comment
#ce

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted (edited)

mmm a guessing game again?  You mean that the last #CE doesn't become a Special color until you add a character/newline?

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.
  :)

Posted (edited)

I see now where the problem is.
EOL are different.

CS_CE_SciTE highliting_Good.au3Fetching info... CS_CE_SciTE highliting_Bad.au3Fetching info...

 

EDIT: sorry for the typos in filenames ;)

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted (edited)

I have no clue who, in an Windows environment, would use UNIX (LF) newline...  but hey.... what ever makes you tick! ;) 

Give the current Beta a spin as that should "fix" this too. :) 

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.
  :)

Posted
  On 3/20/2022 at 8:50 PM, Jos said:

I have no clue who, in an Windows environment, would use UNIX (LF) newline...  but hey.... what ever makes you tick!

Expand  

It was copied code form some github project.
It can happen even when you copy things from internet.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted (edited)

I have one other Folding quirky things that I found somewhat strange in the current release:

This: 

foldingIFs.png.0985b0b195ef786129222874666e64c6.png

Folds to this in the current release:

foldingIFsOld.png.d5f86e8353a6b1c86692fa9ee0663cc3.png

...which I think really should be:

foldingIFsNew.png.306eb8965f2463f982ca424e4338e5d1.png

Agree?

 

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.
  :)

Posted (edited)

other issue:

image.png.2e90eb1503a89338732cb1737b606836.png

 

If "" And _
    @ScriptDir Then
Else
EndIf

EDIT:
But maybe it is the same as you notice ...


btw;

Please try also:

If $a = 1 And _
        $a = 2 Then
    $b
ElseIf $a = 1 And _
        $a = 2 Then
    $c
Else
    $d
EndIf

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

But please take a look also for:

Switch $a
    Case 1
    Case 2
EndSwitch

Select
    Case $a =1
    Case $a =2
EndSelect

image.png.8cde4a1717141a32810c3fa127c16ccc.png

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

hm... 
Ok.
After few more testing and rethinking...
At first look it seams like this:

image.png.f7300f62ee2122ec21a29aeedf468aa4.png
 

but ... I think all cases are GOOD because there must bu at least one additional line beetwen folding points.
In other words folding can't be for single line.

So the first case on the screen which I makred as WRONG is just normall/proper case, because there is not way to fold one single line.
And both cases 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

So it looks like the only issue is with the case you showed:

  On 3/23/2022 at 6:09 PM, Jos said:

in the current release:

foldingIFsOld.png.d5f86e8353a6b1c86692fa9ee0663cc3.png

...which I think really should be:

foldingIFsNew.png.306eb8965f2463f982ca424e4338e5d1.png

Expand  

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted
  On 3/23/2022 at 10:12 PM, mLipok said:

So the first case on the screen which I makred as WRONG is just normall/proper case, because there is not way to fold one single line.

Expand  

Correct :)

  On 3/23/2022 at 10:14 PM, mLipok said:

So it looks like the only issue is with the case you showed

Expand  

Yep...  Thanks for the feedback.

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.
  :)

  • Developers
Posted

Uploaded a new Beta for SciLExer.dll and AutoItTools.lua with the following changes:

  • Change for the Folding for MultiLine If/Elseif statements so the end fold is always on the IF/ElseIf line and the start new fold on the Then line.
  • Added style.au3.92 to the Lexer which I use for #region/#EndRegion blocks to be able to segregate them form the other SPECIAL keywords and give it its own fold level.
    This also means that multiple SPECIAL lines are now foldable like the multiple Commentlines and multiple Pre-Processor lines.
  • Updated  AutoItTools.lua to set style.au3.92 equal to style.au3.12 to ensure the #region/#endregion lines are properly colored. 

 

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.
  :)

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
  • Recently Browsing   0 members

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