Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    User Defined Languages Regex new feature.

    General Discussion
    2
    3
    77
    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 Biase
      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.

      PeterJones 1 Reply Last reply Reply Quote 0
      • PeterJones
        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 Biase 1 Reply Last reply Reply Quote 2
        • Walter Di Biase
          Walter Di Biase @PeterJones last edited by

          Thanks @PeterJones.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors