Community

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

    Creating a new coloring matching character

    Help wanted · · · – – – · · ·
    3
    15
    1361
    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.
    • BigMat Lecircuit
      BigMat Lecircuit last edited by

      they seem to argue about whether it’s even possible to nest quotation marks due to the difficulty of identifying what character opens and close the pair.
      Nevertheless, this problem shouldn’t apply angled brackets. Those should be just as hard to identify as round brackets.

      But is it even user-configurable but is it in the code of NP++ itself?

      Alan Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        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
        • Ekopalypse
          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 Kilborn 1 Reply Last reply Reply Quote 2
          • Alan Kilborn
            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.

            Ekopalypse 1 Reply Last reply Reply Quote 2
            • Ekopalypse
              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 Kilborn 1 Reply Last reply Reply Quote 0
              • Alan Kilborn
                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. :)

                Ekopalypse 1 Reply Last reply Reply Quote 1
                • Ekopalypse
                  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 Lecircuit
                    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

                    Ekopalypse 1 Reply Last reply Reply Quote 1
                    • Ekopalypse
                      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 Lecircuit
                        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

                        Ekopalypse 2 Replies Last reply Reply Quote 0
                        • Ekopalypse
                          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
                          • Ekopalypse
                            Ekopalypse last edited by

                            Issue opened

                            1 Reply Last reply Reply Quote 1
                            • Ekopalypse
                              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
                              Copyright © 2014 NodeBB Forums | Contributors