Community
    • Login

    I'm missing something in UDL

    Scheduled Pinned Locked Moved General Discussion
    6 Posts 2 Posters 357 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.
    • Pavel ViktoraP
      Pavel Viktora
      last edited by Pavel Viktora

      Hey, i’ve made like 8 user defined languages in notepad++, but i’m still missing one feature. You got 8 keyword categories but only one operator category. If I use character “,” as an operator, notepad will highlight it when i use it like this:

      hello,hello
      

      It don’t need spaces between hello and “,”.
      I want this to happen also with keywords (maybe add some checkbox with this option)

      Thanks :)

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Pavel Viktora
        last edited by

        @Pavel-Viktora ,

        but only one operator category

        I disagree with that assessment. Notice how the operators1 behaves differently from operators2

        06b36829-9bbd-4e75-aacb-fdfdf36bceb7-image.png

        Further, you get about half of what you asked for with the prefix mode checkbox, which can be set independently on any of the 8 keyword categories:

        ca10d244-1d9b-4b85-b026-fb02144e91c3-image.png

        And further, if you use an operator1 that doesn’t require spaces as a separator for a prefix-mode keyword, then things can go before the prefix-mode keyword, even without spaces; further, with the operator1 as separators, you can put it between standalones

        b5d4dfa1-cd00-4b9a-9fad-552d43f08434-image.png

        So just define any operators that don’t need a space using operator1, and any of those operators can be used to separate keywords, whether or not the keyword is in prefix mode.

        Pavel ViktoraP 1 Reply Last reply Reply Quote 1
        • Pavel ViktoraP
          Pavel Viktora @PeterJones
          last edited by

          @PeterJones you probably didn’t understand me. Actually i know that, but if i wanna have more categories of operators 1 (like “,” - green color; “.” - blue color), it’s not possible. So i want to basically have more operators 1. But thats a waste of place, so it’ll be great to add option for keyword to act like operator 1.

          Everything clear?

          Btw, i meant this:

          but only one operator category

          like there is only one styler category for operators.

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @Pavel Viktora
            last edited by PeterJones

            @Pavel-Viktora ,

            Sorry, UDL is not infinitely configurable. And unfortunately, while in theory you could read the FAQ and find out how and where put in a feature request (not in the forum, because asking fellow Notepad++ Community members to add a feature is useless, as we aren’t the development team), the developers have ignored feature requests and bug reports on UDL for years now. In the forum, we do our best to point you to what the capabilities actually are, or point you to workarounds.

            For example, as a workaround, you can add extra highlighting to a builtin lexer or to a User Defined Language using regexes via the script EnhanceAnyLexer.py that @Ekopalypse shares in his github repo. So you could use that to search for your second group of operators and style them differently from the operators1/operators2 group.

            Pavel ViktoraP 1 Reply Last reply Reply Quote 0
            • Pavel ViktoraP
              Pavel Viktora @PeterJones
              last edited by Pavel Viktora

              @PeterJones Thanks, i’m stupid cause i thought that this is official notepad++ web. Sorry for the time you’ve wasted for this.

              PeterJonesP 1 Reply Last reply Reply Quote 0
              • PeterJonesP
                PeterJones @Pavel Viktora
                last edited by

                @Pavel-Viktora ,

                You’re not stupid just because you made that assumption.

                This Forum was created by the developers, and is hosted by the developers, for the Community to use to help each other use Notepad++ and to talk about and advocate for the application.

                We just don’t have the power/authority in the forum to agree to make changes to the source code, and the forum is not the location for feature requests and bug reports. As a result, we have a FAQ entry which explains the correct procedure for making feature requests and bug reports, which can be found in the FAQ section under the name FAQ Desk: Feature Request or Bug Report

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