Community
    • Login

    Creating a new coloring matching character

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    15 Posts 3 Posters 2.4k 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.
    • Alan KilbornA
      Alan Kilborn @BigMat Lecircuit
      last edited by

      @BigMat-Lecircuit

      Ah, sorry, I didn’t read your original posting well enough. It does not appear that angled brackets are easily configured to behave like brackets or braces.

      1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse
        last edited by

        This seems strange, as scintilla core and npp do support angled brackets but, at least, in npp it doesn’t seem to work as expected. Maybe a bug !?

        Alan KilbornA 1 Reply Last reply Reply Quote 2
        • Alan KilbornA
          Alan Kilborn @Ekopalypse
          last edited by

          @Ekopalypse

          OP is talking only about coloring.

          What you cited (both references) is for the on-demand brace-matching feature (Search > Go to Matching Brace).

          But I think you are right; from the N++ code it appears angled brackets are supported, but the go-to-matching feature is not enabled when near an angled bracket.

          EkopalypseE 1 Reply Last reply Reply Quote 2
          • EkopalypseE
            Ekopalypse @Alan Kilborn
            last edited by

            @Alan-Kilborn

            from the images I got the impression that OP is referring to colors used by matching braces functionality but I might be wrong.

            Alan KilbornA 1 Reply Last reply Reply Quote 0
            • Alan KilbornA
              Alan Kilborn @Ekopalypse
              last edited by

              @Ekopalypse said:

              from the images

              I think the images are inconclusive on that point; I thought the OP was talking about just careting over an opening or closing brace/bracket and seeing the match be color-highlighted. Perhaps if the OP meant the on-demand feature he would have thought it important enough to mention? Or, I’m totally wrong. :)

              EkopalypseE 1 Reply Last reply Reply Quote 1
              • EkopalypseE
                Ekopalypse @Alan Kilborn
                last edited by

                @Alan-Kilborn

                Or, I’m totally wrong. :)

                … or both of use :-D

                1 Reply Last reply Reply Quote 1
                • BigMat LecircuitB
                  BigMat Lecircuit
                  last edited by BigMat Lecircuit

                  When I place the cursor right before or after an angle bracket (felt or right), I wanted NP++ to bold and color both angle brackets, assuming it finds the other side of the pair.
                  just like with curly brackets

                  EkopalypseE 1 Reply Last reply Reply Quote 1
                  • EkopalypseE
                    Ekopalypse @BigMat Lecircuit
                    last edited by

                    @BigMat-Lecircuit

                    I tried a few things but I guess this is a bug.
                    You might consider open an issue here.

                    1 Reply Last reply Reply Quote 0
                    • BigMat LecircuitB
                      BigMat Lecircuit
                      last edited by

                      Hi,

                      and how shall I call this feature, so that the developer understand what I mean?
                      If this thread is of any indication, it seems I’m having trouble explaining what I wanted!

                      Thanks to all for help and feedback

                      EkopalypseE 2 Replies Last reply Reply Quote 0
                      • EkopalypseE
                        Ekopalypse @BigMat Lecircuit
                        last edited by

                        @BigMat-Lecircuit

                        It is called brace matching, I’m going to open an issue.

                        1 Reply Last reply Reply Quote 0
                        • EkopalypseE
                          Ekopalypse
                          last edited by

                          Issue opened

                          1 Reply Last reply Reply Quote 1
                          • EkopalypseE
                            Ekopalypse @BigMat Lecircuit
                            last edited by Ekopalypse

                            @BigMat-Lecircuit

                            there was a decision made long time ago that the angled bracket matching isn’t part of the builtin matching function
                            as too much languages do use angled brackets as operators, which then would falsely color those operators.

                            At the moment I do see two options for you.

                            1. Open a feature request at github and define exactly how you want it to behave and for which languages (which itself shouldn’t use angled brackets as operators in their syntax) or
                            2. Use one of the plugin scripting languages and make it as a feature for you.
                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            The Community of users of the Notepad++ text editor.
                            Powered by NodeBB | Contributors