Community
    • Login

    UDL Coloring From Selected Theme?

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 2 Posters 1.4k Views 2 Watching
    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 DoutelD Offline
      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
      • PeterJonesP Offline
        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 DoutelD Offline
          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
          • PeterJonesP Offline
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors