Jump to content

Recommended Posts

Posted (edited)

 

 

  Reveal hidden contents

never mind my post, did not understand at the time of posting :(

..but since I started, those files are in the SciTE "light", that comes with the portable distribution of AutoIt. Just copy and replace those at the SciTE portable.
and I'm posting the answer I should have given for those that may read these posts in the future

Edited by argumentum
oops

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

  • 5 months later...
Posted

How to properly use: #Tidy_Parameters

I try to use it this way:

#Tidy_Parameters=/tcb=0

 

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 8/21/2023 at 2:59 PM, Shark007 said:
;Thwere is no 'b' and there is no '='
Expand  

Where did you see that?  

There is a /tcb parameter 
-and-
The you can use either a "=" or " ".

 

 

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)
  On 8/21/2023 at 3:33 PM, Jos said:

Where did you see that?  

There is a /tcb parameter 
-and-
The you can use either a "=" or " ".

 

 

Expand  

It is what I gleaned from the Tidy TAB

Possible Parameters: 
   /tc n  : 0=Tab >0=Number of Spaces.

I see no mention of a 'b' or use of '=' for the /tc option

 

That said, you're the Author and would definately know better.

EDIT, I've since looked at the help file, and sure enough, the b and = symbol are accepted.

Edited by Shark007
  • Developers
Posted (edited)
  On 8/21/2023 at 1:40 PM, mLipok said:

How to properly use: #Tidy_Parameters

I try to use it this way:

#Tidy_Parameters=/tcb=0
Expand  

EDIT: It seems to be working fine for me.....  so what exactly is the issue?

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 8/21/2023 at 3:59 PM, Jos said:

EDIT: It seems to be working fine for me.....  so what exactly is the issue?

Expand  

I thought that I do something wrong.

then I did some more checking and I end with:

  Quote

#Tidy_Parameters=/tcb=-1

Expand  

instead:

  Quote

#Tidy_Parameters=/tcb=0

Expand  

And now as so far it looks like it works as I expected.

So this was my mistake in usage.

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

  • 1 year later...
Posted (edited)

I have a question about syntax highlighting in SciTE4AutoIt

 

#cs ; HTML Example1
<shared-ui-common-notification>
  <div class="my-2 flex min-h-9 items-center gap-2 px-4 py-2 text-base bg-on-error border-error text-error">
    <div class="flex items-center gap-2">
      <mat-icon role="img" aria-hidden="true" class="mat-icon notranslate material-symbols-filled min-w-6 material-symbols-rounded mat-icon-no-color ng-star-inserted" data-mat-icon-type="font" data-mat-icon-namespace="material-symbols-rounded">error</mat-icon>
      <!---->
      <span class="break-word">Nieoczekiwany błąd serwera</span>
    </div>
    <span class="flex-grow"></span>
  </div>
</shared-ui-common-notification>
#ce

#cs= ; HTML Example2
<shared-ui-common-notification>
  <div class="my-2 flex min-h-9 items-center gap-2 px-4 py-2 text-base bg-on-error border-error text-error">
    <div class="flex items-center gap-2">
      <mat-icon role="img" aria-hidden="true" class="mat-icon notranslate material-symbols-filled min-w-6 material-symbols-rounded mat-icon-no-color ng-star-inserted" data-mat-icon-type="font" data-mat-icon-namespace="material-symbols-rounded">error</mat-icon>
      <!---->
      <span class="break-word">Nieoczekiwany błąd serwera</span>
    </div>
    <span class="flex-grow"></span>
  </div>
</shared-ui-common-notification>
#ce

 

Both comment block examples are almost identicall.

They differ only by name and the third character
Specifically = after #cs   :

;
#cs ;.....
.....
#ce

#cs= ;.....
.....
#ce
;

 

If you copy this code snippet to SciTE4AutoIt you will notice that

in case of   #cs ; HTML Example1  entire #CS#CE region have only changed background but not collored syntax

in case of   #cs= ; HTML Example2  entire #CS#CE region have deffault background but contains collored syntax

Can this be mixed somehow ?

What is my goal: I would like to place HTML/XML/JSON/INI example snippets inside a comment block so that the background changes color but still maintain syntax highlighting

Of course it should not be default behavior but for example only in case you put some characters after #cs and before new line.

What is your opinion on this?

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
  On 6/3/2025 at 8:36 PM, mLipok said:

If you copy this code snippet to SciTE4AutoIt you will notice that

in case of   #cs ; HTML Example1  entire #CS#CE region have only changed background but not collored syntax

in case of   #cs= ; HTML Example2  entire #CS#CE region have deffault background but contains collored syntax

Expand  

image.png.99361dcb2cba778640be811291c697fd.png

this is the way it looks in mine. Or are you talking about the v5.x.x.x ?
Because I don't see what you describe .

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

  • Developers
Posted (edited)

Ok so Management summary:

#cs ;Example
    Correctly highlighted
#ce

#cs= ;Example
    Wrongly highlighted
#ce

Will have a look when I feel like opening that source again as I must say I lost the motivation to work on it as in general when I ask for something there's hardly any interest. ;) 

An example that involves you:  Question asked and answered, with my follow-up without any response. 
(Not blaming, just explanation why I lost interest to work on anything dealing with SciTE4AutoIt3)

 

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 6/4/2025 at 12:08 PM, Jos said:

An example that involves you:  Question asked and answered, with my follow-up without any response. 
(Not blaming, just explanation why I lost interest to work on anything dealing with SciTE4AutoIt3)

Expand  

Yes, I know. But somehow it happened that I'm just trying to get back into programming after some life complications that I mentioned to you before.

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)
  On 6/4/2025 at 4:09 PM, mLipok said:

Yes, I know. But somehow it happened that I'm just trying to get back into programming after some life complications that I mentioned to you before.

Expand  

Understood and didn't need an explanation, just wanted to clarify that I feel there are only demands and a lack of support when I ask for people to test something.
This needs to be a 2-way street as far as I am concerned for me to stay motivation to spend time on it. 

So: Nothing personal towards you, just meant for the whole community when they want to look at me for New stuff or Support. 

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

Totally understandable out of my perspective @Jos.
Thanks for the hard work and effort regarding so many topics (like VSCode, AutoIt beta, SciTE etc.).

  On 6/4/2025 at 4:09 PM, mLipok said:

I'm just trying to get back into programming after some life complications that I mentioned to you before.

Expand  

I wish you the best Michał 🍀 . Hopefully you can or will be enjoy life again very soon.

Best regards
Sven

==> AutoIt related: 🔗 GitHub, 🔗 Discord Server, 🔗 Cheat Sheet

  Reveal hidden contents
Posted
  On 6/4/2025 at 6:44 PM, SOLVE-SMART said:

I wish you the best Michał 🍀 . Hopefully you can or will be enjoy life again very soon.

Expand  

Thank you, I feel better day by day.

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
  On 6/4/2025 at 11:58 AM, argumentum said:

Or are you talking about the v5.x.x.x ?

Expand  

Yes
Thus It is possible that I have newer/different SciLexer.dll or something like that.
image.png.a1c6948959405a625fb0b9c9a2abd24e.png

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)
  On 6/4/2025 at 12:08 PM, Jos said:

Ok so Management summary:

#cs ;Example
    Correctly highlighted
#ce

#cs= ;Example
    Wrongly highlighted
#ce

 

Expand  

I would say that it really is "Wrongly highlighted" but I think this imp can be turned into something useful (to have colored different syntax, with background like in comment blocks) which can became handy in case you store in AU3 code another type of code/data - some XML, JSON, INI snippet as a documentation to function.

Edited by mLipok
wording

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)
  On 6/4/2025 at 7:51 PM, mLipok said:

I would say that it really is "Wrongly highlighted" but I think this imp can be turned into something useful (to have colored different syntax, with background like in comment blocks) which can became handy in case you store in AU3 code another type of code/data - some XML, JSON, INI snippet as a documentation to function.

Expand  

The issue is much simpler than what I initially though...  and my post was just to show how you can "simplify" the report of a bug as my example show the exact same issue as yours ...right?
I think that AutoIt3 simply "assumes" the start of a comment-block is a #directive line starts with "#cs" or "#comment-start", and ends the commentblock when a #directive line  starts with "#ce" or "#comment-end"... the rest is simply ignored. So i need to do the same in the lexer and color anything after the keywords as comment-bock.

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 6/5/2025 at 8:03 AM, Jos said:

Uploaded an updated Beta version of SciTE zipfiles containing a fix for the lexer colors.

Expand  

Seams to work fine, the same in 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

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