[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need Help with defining highlight definition


I don't know if this is useful to anyone else but I extended the texthighlighter with a static  TextHighlighter.IgnoreCase property

Which will allow caseless word and symbol matches. Is it worth asking Ben to add this feature to the master?

Anyone else have this issue?

Usage is like:

.......

  TextHighlighter.IgnoreCase = True
  Try TextHighlighter.Register("asm6502", "asm6502", "highlight/asm6502.highlight")
  If Error Then

.....

On 7/14/25 11:54, Brian G wrote:
All my keywords and test operators are caseless. I am trying to define @word to redifine how a word should look as caseless

I try this

@word /(?i)[A-Za-z_](?i)[A-Za-z0-9_]*(?-i)/

@word /(?i)[A-Za-z_][A-Za-z0-9_]*/

I want this

@word (?i)/[A-Za-z_](?i)[A-Za-z0-9_]*/ this cause the evaluation to crash

Help?? has anyone done work with this?

--
~~~~ Brian

Attachment: OpenPGP_0x78BFB26402F48419.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


Follow-Ups:
Re: Need Help with defining highlight definitionBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
Need Help with defining highlight definitionBrian G <brian@xxxxxxxxxxxxxxxx>