Community
    • Login

    UDL- Recognize Any 32 Characters Surrounded by Commas

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 625 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.
    • TM ST Offline
      TM S
      last edited by

      Hello. Trying to define a new language. Here is an example line:

      [frame0]<tile>30,64802A40C8D094A040800A40C8909080,0F0F0516,0,8,1,Y

      I would like to have the 32 character entry (in bold here), be recognized. The 32 characters change depending on “reasons”, but are always numbers and letters {it’s a 32 character hexadecimal string).

      So, Is there a way to define “any 32 characters that is surrounded by commas”?

      Thanks for any help!

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones @TM S
        last edited by

        @TM-S ,

        That is beyond the simple keyword matching of UDL alone, sorry.

        However, if you define everything else in UDL, you could use the EnhanceAnyLexer plugin to add foreground-color changes on any text that matches a regular expression, which could be \b[0-9A-F]{32}\b

        TM ST 1 Reply Last reply Reply Quote 3
        • TM ST Offline
          TM S @PeterJones
          last edited by

          @PeterJones Thank for the fast response! I will give that a try.

          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