• Login
Community
  • Login

Setting UDL for file names

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 217 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.
  • D
    dipaolov
    last edited by Feb 17, 2023, 9:19 AM

    I search the forum and google for the answer but couldn’t find anything. Is it possible to set a rule in the User defined language dialog to highlight file names? I mean, everything formatted as filename.ext, but without any delimiter.

    Thanks,
    Vince.

    E 1 Reply Last reply Feb 17, 2023, 10:39 AM Reply Quote 0
    • E
      Ekopalypse @dipaolov
      last edited by Ekopalypse Feb 17, 2023, 10:39 AM Feb 17, 2023, 10:39 AM

      @dipaolov

      If I understand it correctly, then no. UDL does not have regular expressions.
      The only way I can think of is to use something like what EnhanceAnyLexer plugin does.
      (Can be installed via the PluginAdmin and caveat, I’m the author).
      Basically you create a UDL and then run Enhance current language
      from the plugin EnhanceAnyLexer menu and define your regex with the associated colors.

      D 1 Reply Last reply Feb 19, 2023, 3:15 PM Reply Quote 4
      • D
        dipaolov @Ekopalypse
        last edited by Feb 19, 2023, 3:15 PM

        @Ekopalypse Thanks!

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