Page 1 of 1

Doubt about syntax highlight

Posted: 23 Oct 2022 06:59
by Galizza1
Hi, i like to know how i can configure Rj Texted to highlight in red any keyword that is followed by a space.

This is an example of this highlight.

For this example _ = Space

Keyword
Keyword,
Keyword,_AAAA
Keyword_
Keyword_AAAA
Keyword____AAAA_BBBB

So any keyword followed by a space will be always highlighted in red color. I hope i explained myself properly, thanks.

Re: Doubt about syntax highlight

Posted: 27 Oct 2022 06:58
by pjj
FWIW I tried to setup a new highlighter -- with regex-based keywords -- but for some reason I failed. Maybe Rickard could look into it some day.

Re: Doubt about syntax highlight

Posted: 29 Oct 2022 17:36
by Rickard Johansson
It's possible to use blocks. But if you need to define a large number of keywords - the highlighter may become sluggish. Blocks are much more CPU demanding than regular keywords. So use them wisely.

3_Name=My keyword
3_OnLine=1
3_AsString=1
3_Start=keyword
3_End=

Notice the space after "3_Start=keyword ".