I would like to highlight specific text in a different color.
Autoit local functions [_abc(x,...) or _xyz_2(x,y,...)] be displayed as normal text in AutIt syntax file.
Can i define a RegEx or similar for a keyword-group ? The functionnames begin often with a '_', end before next delimiter like '(', space etc. and may not be included in other keyword-groups (higher priority).
Thanks for help...
Micha
Highlight specialtext in different color possible ?
- Rickard Johansson
- Site Admin
- Posts: 6783
- Joined: 19 Jul 2006 14:29
Re: Highlight specialtext in different color possible ?
Yes! Maybe something like this (not tested...)
[Keywords]
#Function names=_[0-9a-fA-F_]+
...
[Keywords]
#Function names=_[0-9a-fA-F_]+
...
Re: Highlight specialtext in different color possible ?
I have test with "#Own functions=\b_[0-9a-zA-Z_]+" and shorter with "#Own functions=\b_[\w]+".
But the highlighter sometimes mark only a part like here: Where's my mistake ?
But the highlighter sometimes mark only a part like here: Where's my mistake ?
Re: Highlight specialtext in different color possible ?
The length of the marked funktionname (black, underline in Example), depends on how many characters left of the ' = '-delimiter.
A bug or my mistake ??? It seems, that '\b' (begin of word) not fully working !
In other RegEx-Tester it works.
A bug or my mistake ??? It seems, that '\b' (begin of word) not fully working !
In other RegEx-Tester it works.
Re: Highlight specialtext in different color possible ?
Hi Rickard. Can you comment this conspicuity ?
Thanks
Micha
Thanks
Micha
- Rickard Johansson
- Site Admin
- Posts: 6783
- Joined: 19 Jul 2006 14:29
Re: Highlight specialtext in different color possible ?
It's a bug and it's been fixed in v8.62. Thanks!