Community

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

    UDL Coloring From Selected Theme?

    General Discussion
    2
    4
    658
    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.
    • Duane Doutel
      Duane Doutel last edited by

      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
      • PeterJones
        PeterJones last edited by

        @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
        • Duane Doutel
          Duane Doutel last edited by

          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
          • PeterJones
            PeterJones last edited by

            @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
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors