Jump to content

Recommended Posts

Posted

Looks good 👍

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

Thanks to MOD for moving from Chat to AutoIt Technical Discussion

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)

Take a look here:

https://github.com/WinMerge/winmerge/issues/641

If i do anything wrong in this GitHub Issue, please correct me here or directly on github.

 

Especaially about this statement:
 

  Quote

btw.
I think that the simplest RegExp for catching such strings ( variables in AutoIt ) should start from $ sign and end before any white characters or dot or comma.

EDIT:
I found better way to catching such strings .... tested with PCRE
(?i)($[\w]+)

Expand  

 

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

Use \$ as in PCRE $ alone has its own meaning

  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted (edited)
  On 2/21/2021 at 12:57 PM, jchd said:

Use \$ as in PCRE $ alone has its own meaning

Expand  

Nice findings, eagle eye :)

Ah.. GitHub show this incorrectly as I do not use QUTES when I pass it to my Issue reporting.
Of course screenshots

it was submited as:

  Quote

(?i)(\$[\w]+)

Expand  

now is corrected as:

  Quote

`(?i)(\$[\w]+)`

Expand  

On GitHub now it looks like

image.png.900e314f848ec3eab27c2253f0e6dae0.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 (edited)

@mLipok
Using ranges [] with just \w in it is not useful is this case.
You can just use \w+ without any square brackets, so the final pattern should look like:

'(?i)\$\w+'

But, in this case, you may find substitution in a StringRegExpReplace() function (and many others wrong results), like the following example:

Test()

Func Test()

    Local $str = "This is a string with $dollar sign!"

    ConsoleWrite("Before: " & $str & @CRLF & _
                 "After : " & StringRegExpReplace($str, "\$(\w+)", "no more $1") & @CRLF)

EndFunc

With the result: https://regex101.com/r/sh4osq/1/

^_^

Edited by FrancescoDiMuro

Click here to see my signature:

  Reveal hidden contents

 

Posted

Thanks @FrancescoDiMuro fixed.

 

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)

What about such version:

  Quote

\$\w+

Expand  

I mean without using     (?i)

Edit: take a look again at this link: https://github.com/WinMerge/winmerge/issues/641

 

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 2/22/2021 at 9:43 AM, FrancescoDiMuro said:

also remembering that AutoIt is case-insensitive

Expand  

We must remeber that we are talking about WinMerge which is developed in C++ (i think so) and can use different RegExp modules.

btw. I also added some testing data for WinMerge dev.
https://github.com/WinMerge/winmerge/issues/641#issuecomment-783249683

 

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

  • 2 weeks later...
Posted (edited)

I was searching how AutoIt code is highlighted on Track.
As for now I found this:

https://trac.edgewall.org/wiki/WikiHtml
https://trac.edgewall.org/wiki/WikiProcessors
https://pygments.org/languages/#
https://pygments.org/docs/lexers/
https://github.com/pygments/pygments/blob/master/pygments/lexers/automation.py
 

Could somebody confirm that Track use pygments lexer ?

btw.
Please take a look and click thumbs up emoji on this:
https://github.com/pygments/pygments/issues/1733

 

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

  • mLipok changed the title to WinMerge / Github / StackOverFlow / Track - AutoIt Syntax Highlighting
  • 1 month later...
Posted

https://github.com/WinMerge/winmerge/pull/749

Macros >> User 1
Variable >> User 2

image.thumb.png.41ae47eb536134ef68f9f1c18727ff60.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

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

https://github.com/WinMerge/winmerge/pull/753

Added #CS #CE support .... as so far only lower case #cs #ce was supported.

 

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

  • 3 months later...
Posted

Do you ever had a need to look in your code on Mobile devices like smartphone ?

Currently I switch to this solution:

https://play.google.com/store/apps/details?id=com.rhmsoft.code


There is AutoIt code highlighting.

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

  • 4 months later...
Posted (edited)

Today I was working on dark Theme on the forum with my Chrome browser, and here are my effects:

The code :

; #FUNCTION# ====================================================================================================================
; Author ........: Cephas <cephas at clergy dot net>
; Modified.......: Jos - added $iStart parameter and logic, Ultima - added $iEnd parameter, make use of _ArrayToString() instead of duplicating efforts; Melba23 - added 2D support
; ===============================================================================================================================
Func _ArrayToClip(Const ByRef $aArray, $sDelim_Col = "|", $iStart_Row = -1, $iEnd_Row = -1, $sDelim_Row = @CRLF, $iStart_Col = -1, $iEnd_Col = -1)
    Local $sResult = _ArrayToString($aArray, $sDelim_Col, $iStart_Row, $iEnd_Row, $sDelim_Row, $iStart_Col, $iEnd_Col)
    If @error Then Return SetError(@error, 0, 0)
    If ClipPut($sResult) Then Return 1
    Return SetError(-1, 0, 0)
EndFunc   ;==>_ArrayToClip

And screeenshot:

image.thumb.png.30858fd010271696601a2c0421619cfa.png

 

https://userstyles.world/style/2609/autoit-forum-darkstyle2

 

@-moz-document domain("autoitscript.com") {
    pre.geshi {
        background: rgb( var(--theme-area_background) );
    }

    .kw1{
        color: mediumpurple !important; /*keywords  */
    }

    .kw2{
        color: yellow !important; /*function names  */
    }

    .kw3{
        color: violet !important; /*function names  */
    }

    .st0{
        color: mediumaquamarine !important; /* strings */
    }

    .re0 {
        color: white !important; /* variables */
    }

    .sy0 {
        color:  lightsalmon !important; /* operators */
    }

    .br0 {
        color: orange !important; /* bracketes */
    }

    .nu0 {
        color: orangered !important; /* numbers */
    }

}

 

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 1/3/2022 at 8:39 PM, mLipok said:
Expand  

The style looks nice, but it sadly doesn't work for me :(

If you have the time can you try it on Firefox? If not I can take a look when I am free.

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Posted

Does this CSS style tool works on FireFox ?

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 1/4/2022 at 12:24 AM, mLipok said:

Does this CSS style tool works on FireFox ?

Expand  

Yes, that's where I use it as FF is my default browser.

https://github.com/openstyles/stylus/#releases

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

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