I’ve read all the documentation I could find on defining language syntax files in Notepad++ but still haven’t figured out how to do this.

All the commands in ZPL (Zebra Printing Language) consist of simply a caret followed by two alphanumeric characters. Everything else is parameter data. Even comments are defined in the same manner (using the ^FX command). For example:

(If you are seeing any different colors within the code block above, disregard them. That’s only a facet of the Markdown syntax.)

All I’d like to be able to say is a caret and the two characters following it are in one style and everything else is another. If I get really adventurous I might add a third definition for the comments. :-)

Of course I could go the long way and define all the commands individually but that’s a very long list and of course wouldn’t be future-proof as new commands are incorporated. Is there a simple way to define what I’m after?