Posted 13 years ago
by David
![Avatar](https://secure.gravatar.com/avatar/b88ff76d9bd34f8a731100f1b28095a3.jpg?s=64&d=identicon&r=g)
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.