Community
    • Login

    User Defined Languages Regex new feature.

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 632 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.
    • Walter Di BiaseW Offline
      Walter Di Biase
      last edited by

      I have a particular type of log that includes a datatype that starts with a “p” followed by four hex digits, and “-t” followed by another 4 hexs.
      This is an example:
      p1500-t1A5C-other data
      p1AA8-t1ED0-other data
      p1500-t1A7C-other data

      It would be very helpful if Styler could support regex to format this kind of headers.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Online
        PeterJones @Walter Di Biase
        last edited by

        @Walter-Di-Biase ,

        There have been requests for years for the UDL to accept regular exprssions; it still doesn’t, and that is not likely to change.

        However, you can add extra highlighting to a builtin lexer (like the HTML lexer) or to a User Defined Language (UDL) using regexes via the script EnhanceAnyLexer.py that @Ekopalypse shares in his github repo, if you have the PythonScript plugin installed (Plugins > Plugins Admin, PythonScript, INSTALL).

        Walter Di BiaseW 1 Reply Last reply Reply Quote 2
        • Walter Di BiaseW Offline
          Walter Di Biase @PeterJones
          last edited by

          Thanks @PeterJones.

          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