• Login
Community
  • Login

UDL Coloring From Selected Theme?

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 1.1k 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
    Duane Doutel
    last edited by Apr 27, 2019, 10:46 PM

    Is there no way to create a UDL that inherits its’ syntax coloring from the selected NP++ theme? If it is possible, please enlighten me; setting hard colors in the UDL itself makes it impossible to have the UDL’s syntax highlighting look decent across different themes.

    Thanks!

    1 Reply Last reply Reply Quote 0
    • P
      PeterJones
      last edited by Apr 27, 2019, 11:44 PM

      @Duane-Doutel: welcome to the Notepad++ Community.

      The UDL is completely separate from the selected theme. As far as I know, it uses a separate engine, and doesn’t know how to inherit from the theme. Sorry.

      As a workaround, @ekopalypse has customized a PythonScript which will add extra highlighting to a given lexer based on the regular expressions listed. (An example is the perl customization that he published in #111 of this thread .) I don’t know whether that script can be customized to use theme-based colors or not. Now that I’ve tagged him, he’s more likely to notice and pipe in with a response.

      1 Reply Last reply Reply Quote 2
      • D
        Duane Doutel
        last edited by Apr 28, 2019, 1:49 AM

        I was Afraid of that. Ah, well, I was looking to help a friend new to the world of programmer’s editors out with a UDL for an obscure language. He’ll just have to make do with the default theme while working with it. Thanks for your time!

        1 Reply Last reply Reply Quote 1
        • P
          PeterJones
          last edited by Apr 29, 2019, 1:05 PM

          @Duane-Doutel said:

          UDL for an obscure language. He’ll just have to make do with the default theme while working with it.

          Or he can customize the UDL’s colors to match a single theme that he commonly uses.

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