Doubt about syntax highlight

Ask how to do things or if a certain feature is available in the program.
Post Reply
Galizza1
Posts: 1
Joined: 23 Oct 2022 06:05

Doubt about syntax highlight

Post 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.
User avatar
pjj
Posts: 2109
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: Doubt about syntax highlight

Post 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.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
Rickard Johansson
Site Admin
Posts: 6577
Joined: 19 Jul 2006 14:29

Re: Doubt about syntax highlight

Post 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 ".
Post Reply