Posted 14 years ago
by David
Hi, just a quick question, is it possible to apply a highlighting style to a token at runtime, using a programmed lexer?
E.g. colouring keywords in a language when they are defined as a new type.
I know you can do this in a dynamic XML lexer, by defining a pattern group with a given style, and then adding tokens to that group at runtime.
Was just wondering how this would be done (if possible) for a custom written lexer.
Thanks.
E.g. colouring keywords in a language when they are defined as a new type.
I know you can do this in a dynamic XML lexer, by defining a pattern group with a given style, and then adding tokens to that group at runtime.
Was just wondering how this would be done (if possible) for a custom written lexer.
Thanks.