Community
    • Login

    User Defined Languages Regex new feature.

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 340 Views
    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
      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
        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
          Walter Di Biase @PeterJones
          last edited by

          Thanks @PeterJones.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors