Community
    • Login

    Editing the file "context Menu.xml" how to add a submenu to the context menu?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    17 Posts 2 Posters 3.2k 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.
    • andrecool-68A
      andrecool-68
      last edited by

      I added in the “context Menu.xml” selection of switching language files.
      Can I add submenus to reduce the size of the context menu?
      To make it look like the “Style token” menu

      Imgur

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @andrecool-68
        last edited by

        @andrecool-68

        yes, like so

        		<Item FolderName="Heureka" PluginEntryName="Python Script" PluginCommandItemName="format_json" ItemNameAs="JSON Format"/>
        
        andrecool-68A 2 Replies Last reply Reply Quote 2
        • andrecool-68A
          andrecool-68 @Ekopalypse
          last edited by

          @Ekopalypse I don’t need to format anything!
          I need to switch between the syntax of languages
          (in one file there may be html and css … but two syntaxes do not work at the same time)

          1 Reply Last reply Reply Quote 0
          • andrecool-68A
            andrecool-68 @Ekopalypse
            last edited by

            @Ekopalypse I need a simple switch between syntax.

            Imgur

            EkopalypseE 1 Reply Last reply Reply Quote 0
            • EkopalypseE
              Ekopalypse @andrecool-68
              last edited by

              @andrecool-68

              seems I wasn’t clear. The tag you are looking for is FolderName.
              So something like

              <Item FolderName="SWITCH" MenuEntryName="Language" MenuItemName="CSS"/>
              <Item FolderName="SWITCH" MenuEntryName="Language" MenuItemName="HTML"/>
              

              would do what you want.
              In case you want to have a different name you can use the ItemNameAs tag.

              andrecool-68A 1 Reply Last reply Reply Quote 2
              • andrecool-68A
                andrecool-68 @Ekopalypse
                last edited by

                @Ekopalypse Thank you very much!

                What the doctor ordered!

                Imgur

                This option probably I misunderstood)

                Imgur

                EkopalypseE 1 Reply Last reply Reply Quote 1
                • EkopalypseE
                  Ekopalypse @andrecool-68
                  last edited by

                  @andrecool-68

                  :-) this is what we call “you don’t see the forest because of the trees” - happens to me always!! :-)

                  andrecool-68A 2 Replies Last reply Reply Quote 2
                  • andrecool-68A
                    andrecool-68 @Ekopalypse
                    last edited by

                    @Ekopalypse Now I understand where my error with “ItemNameAs”

                    Imgur

                    EkopalypseE 1 Reply Last reply Reply Quote 1
                    • EkopalypseE
                      Ekopalypse @andrecool-68
                      last edited by

                      @andrecool-68

                      sorry - I thought you already knew it.
                      Yes, that is its usage.

                      1 Reply Last reply Reply Quote 1
                      • andrecool-68A
                        andrecool-68 @Ekopalypse
                        last edited by andrecool-68

                        @Ekopalypse said:

                        :-) this is what we call “you don’t see the forest because of the trees” - happens to me always!! :-)

                        100%!!!

                        EkopalypseE 1 Reply Last reply Reply Quote 1
                        • EkopalypseE
                          Ekopalypse @andrecool-68
                          last edited by

                          @andrecool-68 - gotcha :-D

                          andrecool-68A 1 Reply Last reply Reply Quote 1
                          • andrecool-68A
                            andrecool-68 @Ekopalypse
                            last edited by

                            @Ekopalypse
                            There is a Russian proverb:
                            “Смотришь в книгу …а видишь фигу”
                            I do not know how beautiful it is to translate into English)))

                            EkopalypseE 1 Reply Last reply Reply Quote 1
                            • EkopalypseE
                              Ekopalypse @andrecool-68
                              last edited by

                              @andrecool-68

                              I see :-D (https://lyricstranslate.com/hu/смотришь-в-книгу-а-видишь-фигу#n2203547)

                              andrecool-68A 1 Reply Last reply Reply Quote 1
                              • andrecool-68A
                                andrecool-68 @Ekopalypse
                                last edited by

                                @Ekopalypse I was talking about myself)))

                                EkopalypseE 1 Reply Last reply Reply Quote 1
                                • EkopalypseE
                                  Ekopalypse @andrecool-68
                                  last edited by

                                  @andrecool-68

                                  :-D doesn’t matter - the same is true for me :-D

                                  andrecool-68A 1 Reply Last reply Reply Quote 1
                                  • andrecool-68A
                                    andrecool-68 @Ekopalypse
                                    last edited by andrecool-68

                                    @Ekopalypse I found the file “contextMenu.xml” on the Internet with full Russification of comments
                                    … everything is described in detail and clearly how to edit the context menu.
                                    It’s too bad that I know English … because of this, all the problems)))

                                    EkopalypseE 1 Reply Last reply Reply Quote 1
                                    • EkopalypseE
                                      Ekopalypse @andrecool-68
                                      last edited by

                                      @andrecool-68
                                      sometimes I feel the same, but most IT documentation is in English, so … we have to live with it … until the Chinese take over operating system development :-) then we have to learn Mandarin :-)

                                      1 Reply Last reply Reply Quote 1
                                      • StoopidoManS StoopidoMan referenced this topic on
                                      • First post
                                        Last post
                                      The Community of users of the Notepad++ text editor.
                                      Powered by NodeBB | Contributors