• Login
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.
  • A
    andrecool-68
    last edited by Jun 16, 2019, 12:26 PM

    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

    E 1 Reply Last reply Jun 16, 2019, 3:27 PM Reply Quote 0
    • E
      Ekopalypse @andrecool-68
      last edited by Jun 16, 2019, 3:27 PM

      @andrecool-68

      yes, like so

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

        @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
        • A
          andrecool-68 @Ekopalypse
          last edited by Jun 16, 2019, 3:58 PM

          @Ekopalypse I need a simple switch between syntax.

          Imgur

          E 1 Reply Last reply Jun 16, 2019, 4:02 PM Reply Quote 0
          • E
            Ekopalypse @andrecool-68
            last edited by Jun 16, 2019, 4:02 PM

            @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.

            A 1 Reply Last reply Jun 16, 2019, 4:51 PM Reply Quote 2
            • A
              andrecool-68 @Ekopalypse
              last edited by Jun 16, 2019, 4:51 PM

              @Ekopalypse Thank you very much!

              What the doctor ordered!

              Imgur

              This option probably I misunderstood)

              Imgur

              E 1 Reply Last reply Jun 16, 2019, 4:54 PM Reply Quote 1
              • E
                Ekopalypse @andrecool-68
                last edited by Jun 16, 2019, 4:54 PM

                @andrecool-68

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

                A 2 Replies Last reply Jun 16, 2019, 7:07 PM Reply Quote 2
                • A
                  andrecool-68 @Ekopalypse
                  last edited by Jun 16, 2019, 7:07 PM

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

                  Imgur

                  E 1 Reply Last reply Jun 16, 2019, 7:18 PM Reply Quote 1
                  • E
                    Ekopalypse @andrecool-68
                    last edited by Jun 16, 2019, 7:18 PM

                    @andrecool-68

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

                    1 Reply Last reply Reply Quote 1
                    • A
                      andrecool-68 @Ekopalypse
                      last edited by andrecool-68 Jun 16, 2019, 7:25 PM Jun 16, 2019, 7:24 PM

                      @Ekopalypse said:

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

                      100%!!!

                      E 1 Reply Last reply Jun 16, 2019, 7:25 PM Reply Quote 1
                      • E
                        Ekopalypse @andrecool-68
                        last edited by Jun 16, 2019, 7:25 PM

                        @andrecool-68 - gotcha :-D

                        A 1 Reply Last reply Jun 16, 2019, 7:31 PM Reply Quote 1
                        • A
                          andrecool-68 @Ekopalypse
                          last edited by Jun 16, 2019, 7:31 PM

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

                          E 1 Reply Last reply Jun 16, 2019, 7:36 PM Reply Quote 1
                          • E
                            Ekopalypse @andrecool-68
                            last edited by Jun 16, 2019, 7:36 PM

                            @andrecool-68

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

                            A 1 Reply Last reply Jun 16, 2019, 7:46 PM Reply Quote 1
                            • A
                              andrecool-68 @Ekopalypse
                              last edited by Jun 16, 2019, 7:46 PM

                              @Ekopalypse I was talking about myself)))

                              E 1 Reply Last reply Jun 16, 2019, 7:47 PM Reply Quote 1
                              • E
                                Ekopalypse @andrecool-68
                                last edited by Jun 16, 2019, 7:47 PM

                                @andrecool-68

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

                                A 1 Reply Last reply Jun 16, 2019, 8:19 PM Reply Quote 1
                                • A
                                  andrecool-68 @Ekopalypse
                                  last edited by andrecool-68 Jun 16, 2019, 8:20 PM Jun 16, 2019, 8:19 PM

                                  @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)))

                                  E 1 Reply Last reply Jun 16, 2019, 8:23 PM Reply Quote 1
                                  • E
                                    Ekopalypse @andrecool-68
                                    last edited by Jun 16, 2019, 8:23 PM

                                    @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
                                    • S StoopidoMan referenced this topic on May 15, 2024, 1:45 AM
                                    10 out of 17
                                    • First post
                                      10/17
                                      Last post
                                    The Community of users of the Notepad++ text editor.
                                    Powered by NodeBB | Contributors