UDL highlight words between 2 keyword
-
the rule is simple
- highlight between (space) and (equal) (operator =) as blue
- highlight between (equal) and (space) as orange
(equal) remains default
the sample text are
id=045 name=“Valencia” offset=3,1 jump=5
id=046 name=“Zeken” offset=5,4 jump=67I am stucking because:
- Found no way to use whitespace
- The highlighter always includes (equal)
How can I use UDL to fromat it?
Thank you.
-
@taigama_coder said in UDL highlight words between 2 keyword:
How can I use UDL to fromat it?
That is beyond the capability of UDL: it’s designed for simple keyword and operator highlighting, and what you are asking would require a custom lexer…
Normally, I would suggest the EnhanceAnyLexer plugin, which allows adding foreground coloring based on regular expressions… but since you are asking to highlight the whitespace, and whitespace by definition is not using the foreground color, I don’t think it’s features would help you.