Editing the file "context Menu.xml" how to add a submenu to the context menu?
-
yes, like so
<Item FolderName="Heureka" PluginEntryName="Python Script" PluginCommandItemName="format_json" ItemNameAs="JSON Format"/>
-
@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) -
@Ekopalypse I need a simple switch between syntax.
-
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. -
-
:-) this is what we call “you don’t see the forest because of the trees” - happens to me always!! :-)
-
@Ekopalypse Now I understand where my error with “ItemNameAs”
-
sorry - I thought you already knew it.
Yes, that is its usage. -
@Ekopalypse said:
:-) this is what we call “you don’t see the forest because of the trees” - happens to me always!! :-)
100%!!!
-
@andrecool-68 - gotcha :-D
-
@Ekopalypse
There is a Russian proverb:
“Смотришь в книгу …а видишь фигу”
I do not know how beautiful it is to translate into English))) -
-
@Ekopalypse I was talking about myself)))
-
:-D doesn’t matter - the same is true for me :-D
-
@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))) -
@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 :-) -