@Michael-Goldsworth ,
UDL has its limitations. + or - prefixing a number with no intervening space will always be treated as part of the number.
If you add the EnhanceAnyLexer plugin using Plugins Admin, you can use that plugin to have a regular expression apply foreground coloring:
0xFFFF00 = [+-](?=\d)
; for UDL, need to remove 3 from excluded styles if you want
; this new color to override the number styling
excluded_styles = 1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,20,21,22,23
I used cyan in my example (0xGGBBRR=0xFFFF00) to make it obvious:
with EnhanceAnyLexer:
9b1912d0-f936-49fa-90b3-0f5ef693657c-image.png
without EnhanceAnyLexer (or with the definition commented out):
d7d7e7a5-634b-492c-843a-dabdcc130da8-image.png
The 24 style numbers are defined in the Notepad++ UDL source code (a similar link is present in the default EnhanceAnyLexerConfig.ini, if anyone reads the comments there…)