I would like to colorize in a special color all my constant which are all in capital letters in my code and all my method variables which begin with an @.
Is it possible to use Regex to define keywords with listings package ? It will help me for a lot of things !
For example, I actually have in a
--> If I could replace this by:
it will save me from a lot of work !
If not, is there another way to have all my constant in a special color without defining all of them one by one in a keywords list ?
I first think about using
moredelim for the @ part but the ending character is problematic: it can be a space, a dot or a lot of other characters...