Very simple Language definition (ZPL)
-
Or so I thought…
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:
^FX Media track continuous - no perforation ^MNN ^FX Field offset x,y at 8 dots/mm ; Font, no rotation, height, width ; International Code set IBM ; Data ^FO0,40^A0N,250,290^CI13^FD{Rack}^FS
(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?
Thanks
Wayne
Notepad++ v7.4.2 (32-bit)
Build time : Jun 18 2017 - 23:34:19
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 7 (64-bit) -
@Wayne-Ivory
I don’t think there is any way to do what you’d like other than listing the individual commands.