 AlexAndrei
Member
|
Hello,
I would need some help with a way to have a custom syntax highlight, using regular expression.
I work a lot with software generated traces, that have various messages with common prefixes and suffixes. Something like: (A|B)_(.+)_(request|confirm)
A_message1_request
B_message2_confirm
etc
Is there a way to define for example two classes of keywords, one for _request messages, one for _confirm messages, with different styles, and using regular expressions ? I could enter all messages by hand, but there are quite many, and also they change in time.
Thank you in advance!
PS: Using PN 2.1.5 + PyPN 1.12. A PyPN method would also be acceptable, but I would prefer to avoid it for now.
Regards,
Alex
|
 simon
Key Master
|
Without writing a C++ lexer, there is currently no support for this. You could do it with PyPN based on restyling whenever a character is added, but it’s not a supported scenario at the moment so I’ve never tried it.
|