• Login
Community
  • Login

Personal Syntax Highlight

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 956 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.
  • ?
    A Former User
    last edited by May 31, 2019, 3:46 PM

    I would like to use UDL to implement a higlight not for some code but for some log files. Messages in this files may look like this:

    01.01.2000 00:00:00 [MESSAGE TYPE]: Some message|Using|Delimiters^or maybe several types^of delimiters

    I have reached a conclusion that if I want to implement it I need to use kind of regex in UDL like a mask for timestamp, begin-of-line-anchor and so on. Because keywords and operators highlight functional is not enough for this purpose. Is there any chance to implement it?

    1 Reply Last reply Reply Quote 0
    • P
      PeterJones
      last edited by May 31, 2019, 7:07 PM

      @vk, welcome to Notepad++ Community.

      The UDL does not handle regular expressions, as you’ve discovered. UDL isn’t likely to change much, especially not in the near future.

      However, @Ekopalypse has shared the EnhanceAnyBuiltinLexer.py , which is a script for the PythonScript plugin, which allows adding highlights based on regular expressions.

      1 Reply Last reply Reply Quote 3
      • ?
        A Former User
        last edited by Jun 3, 2019, 7:27 AM

        Thank you for your answer, @PeterJones!
        I’ll try to use this plugin.

        E 1 Reply Last reply Jun 3, 2019, 11:48 AM Reply Quote 0
        • E
          Ekopalypse @A Former User
          last edited by Jun 3, 2019, 11:48 AM

          @vk

          if you install pythonscriptplugin, check the samples out, there is an LogFileLexer example, maybe you can already use it like it is.

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