Community
    • 登入

    Can I have multiple ‘Search Engine’ in the context menu?

    已排程 已置頂 已鎖定 已移動 Help wanted · · · – – – · · ·
    3 貼文 2 Posters 298 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Arjen van den BroeckeA
      Arjen van den Broecke
      最後由 編輯

      … each with their own base URL to specify a search.

      1 條回覆 最後回覆 回覆 引用 0
      • andrecool-68A
        andrecool-68
        最後由 編輯

        Do you mean searching the highlighted phrase on the Internet?
        Here’s my example:
        These are the lines in the shortcuts.xml file

        		<Command name="Search htmlbook.ru" Ctrl="no" Alt="no" Shift="no" Key="0">http://htmlbook.ru/sites/search/?q=$(CURRENT_WORD)</Command>
        		<Command name="Search htmlbook.ru++" Ctrl="no" Alt="no" Shift="no" Key="0">https://webref.ru/search/?q=$(CURRENT_WORD)</Command>
        		<Command name="Search w3schools.com" Ctrl="no" Alt="no" Shift="no" Key="0">https://www.w3schools.com/search/?q=$(CURRENT_WORD)</Command>
        		<Command name="Google Translate" Ctrl="no" Alt="no" Shift="no" Key="0">https://translate.google.com/?q=$(CURRENT_WORD)</Command>
        		<Command name="Search Microsoft Update Catalog" Ctrl="no" Alt="no" Shift="no" Key="0">https://www.catalog.update.microsoft.com/Search.aspx?q=$(CURRENT_WORD)</Command>
        

        These are the lines in the contextMenu.xml file

        		<Item FolderName="Найти в Интернете" MenuEntryName="Edit" MenuItemName="Search on Internet" ItemNameAs="Найти в www.Google.com"/>
        		<Item FolderName="Найти в Интернете" MenuEntryName="Run" MenuItemName="Search Microsoft Update Catalog" ItemNameAs="Найти в Каталоге Microsoft"/>
        

        Безымянный.png

        1 條回覆 最後回覆 回覆 引用 6
        • Arjen van den BroeckeA
          Arjen van den Broecke
          最後由 編輯

          It took me some time to figure out what you did there (I am new to NPP …) - but yes! that is exactly what I was looking for!
          Thank you so much for your kind help.

          1 條回覆 最後回覆 回覆 引用 3
          • 第一個貼文
            最後的貼文
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors