Community
    • Login

    Very simple Language definition (ZPL)

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    language udl
    2 Posts 2 Posters 3.0k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Wayne IvoryW Offline
      Wayne Ivory
      last edited by

      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)

      1 Reply Last reply Reply Quote 0
      • Jim DaileyJ Offline
        Jim Dailey
        last edited by

        @Wayne-Ivory
        I don’t think there is any way to do what you’d like other than listing the individual commands.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors